#K74262. Perfect Square Checker
Perfect Square Checker
Perfect Square Checker
Given an integer (X), determine whether (X) is a perfect square. In other words, check if there exists an integer (Y) such that (Y^2 = X). If (X) is a perfect square (and (X \geq 1)), output 1; otherwise, output 0. Note that by definition, 0 is not considered a perfect square for the purpose of this problem.
Input: A single integer (X).
Output: Print 1 if (X) is a perfect square, otherwise print 0.
inputFormat
The input consists of a single integer (X) provided via standard input. Ensure you read the integer from stdin.
outputFormat
Output a single digit: 1 if (X) is a perfect square (and (X \geq 1)), otherwise 0. The output should be written to standard output.## sample
16
1