#C14951. Double Perfect Square Checker
Double Perfect Square Checker
Double Perfect Square Checker
Given a non-negative integer (n), determine whether (n) is a perfect square and additionally whether its integer square root is also a perfect square. A number (n) is called a perfect square if there exists an integer (k) such that (n = k^2). Similarly, if (n) is a perfect square with (\sqrt{n} = k), then (k) is a perfect square if there exists an integer (m) such that (k = m^2).
Your task is to write a program that reads an integer from standard input and outputs two boolean values separated by a space. The first boolean indicates whether (n) is a perfect square, and the second indicates whether the integer square root of (n) is also a perfect square. In case (n) is negative, output an error message "Error".
inputFormat
Input is provided from standard input and consists of a single integer (n).
outputFormat
Output to standard output a single line containing two space-separated boolean values (either 'True' or 'False'). If the input is negative, output the string "Error".## sample
16
True True