You are provided a string S. Your task is to determine whether the provided string is a valid IP address.
A valid IP address is determined based on the following rules:
Input format
The first and only line of the input contains the string S.
Note
Output format
If the provided IP address is valid, then print YES. Otherwise, print NO.
Note: Print the output in a single line.
Constraints
1≤|S|≤64
The string contains exactly 4 non-empty parts and 3 dots. The value of each part is <=255 and >= 0.