In order to access the Internet, each computer is assigned an IP-address. It consists of four integers in the range from to separated by dots. The following three lines show three valid IP-addresses:
127.0.0.0
192.168.0.01
255.00.255.255
Write a program that determines whether the given string is a valid IP-address.
The input consists of a string of no more than characters, containing digits and exactly three dots.
If the string is a valid IP-address, output 1; otherwise, output 0.
Example 1