#C12626. Valid IPv4 Address Checker

    ID: 42074 Type: Default 1000ms 256MiB

Valid IPv4 Address Checker

Valid IPv4 Address Checker

In this problem, you are required to check whether a given string is a valid IPv4 address. An IPv4 address consists of four decimal numbers, each ranging from 0 to 255, separated by dots.

For each of the four parts, the following conditions must be met:
1. It must contain only digits.
2. Its numeric value must satisfy (0 \leq num \leq 255).
3. It should not contain leading zeros unless it is exactly "0".

Your program should read the IPv4 address candidate from standard input and output either True if the address is valid or False otherwise.

inputFormat

The input consists of a single line containing a string representing an IPv4 address candidate.

outputFormat

Output a single line with either True or False. The output must end with a newline character.## sample

192.168.1.1
True

</p>