Introduction - If you have any usage issues, please Google them yourself
In an internet-based program, we often need to determine the legality of an IP string.
Legitimate IP is the form:
A.B.C.D
A, B, C, and D are all integers in [0, 255]. For the sake of simplicity, we specify that no leading zero exists in these four integers, as in 001.
Now, please to complete the judgment procedure ^_^
The Input
The input consists of several lines, each of which is a string, and the input is terminated by the End of file .
The length of the string is up to 30, with no Spaces and no visible characters.
The Output
For each input, a single output row
If the string is legal IP, output YES, otherwise, the output NO