You are given a decimal number N.
Task
Print YES if the given number can be represented in the form of an integer, else print NO.
Example
Assumption
Approach
As 35.8 can not be accurately represented as an integer as 35 is not equal to 35.8, the answer is NO.
Function description
Complete the function solve provided in the editor. This function takes the following parameter and returns the required answer:
Input format
Note: This is the input format that you must use to provide custom input (available above the Compile and Test button).
Output format
For each test case, print YES if the given number can be represented in the form of integer, else print NO.
Constraints
1≤T≤10
1≤length(N)≤105
Code snippets (also called starter code/boilerplate code)
This question has code snippets for C, CPP, Java, and Python.
34.0 can be represented as integer while 34.9 can not