IP-address#1951

IP-address

1 second
64 megabytes
Very easy

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.

Input

The input consists of a string of no more than characters, containing digits and exactly three dots.

Output

If the string is a valid IP-address, output 1; otherwise, output 0.

Examples

Example 1

Loading
Loading