Problem Description

Read a string, check if it is a valid IPv4 like A. B.C.D where each part is 0 to 255 and no empty parts. Output YES or NO.

Input Format

One string ip.

Output Format

YES or NO.

Sample Test Case

Input:
192.168.0.1
Output:
YES

Constraints

Length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next