Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/funksiya-kvadrat-sonmi

Is it a perfect square

Easy 1000 ms 128 MB 27%
Share

Write a function IsPerfectSquare(x) that returns true if the non-negative integer $x$ is the square of some integer and false otherwise.

Example 1: IsPerfectSquare(49) → true — $49 = 7^{2}$.

Example 2: IsPerfectSquare(50) → false

Write only the function body.

The number 49 goes into the function IsPerfectSquare, which returns true

Input

One line with a non-negative integer $x$ — the argument of the function.

Output

The value returned by the function: true or false.

Note

$0 \le x \le 10^{15}$

Examples

Input #1
49
Output #1
true
Input #2
50
Output #2
false

Sign in to submit a solution

Signing up is free and takes a minute.