LearnPy Hub
← Arena
IntermediateRating 1200

Valid IPv4 Address

An IPv4 address has four numbers 0–255 separated by dots, with no leading zeros (except the number 0 itself). Print YES or NO.

Input

One line.

Output

YES or NO.

Sample 1

Input
192.168.1.1
Output
YES

Sample 2

Input
256.1.1.1
Output
NO
solution.py
Output appears here
Valid IPv4 Address · Python Arena problem · LearnPy Hub