#K55822. Valid IPv4 Address Checker

    ID: 30061 Type: Default 1000ms 256MiB

Valid IPv4 Address Checker

Valid IPv4 Address Checker

You are given a string representing an IPv4 address. Your task is to determine whether it is valid. A valid IPv4 address is defined as follows:

  • It consists of exactly four decimal numbers separated by dots.
  • Each number must be in the range \(0 \leq number \leq 255\).
  • Numbers cannot contain leading zeroes unless the number is exactly zero.

For example, "192.168.1.1" is valid, whereas "192.168.1" or "192.168.1.01" are not.

inputFormat

The input consists of a single line containing the IPv4 address as a string read from standard input (stdin).

outputFormat

Output a single line to standard output (stdout) containing either "True" if the IP address is valid, or "False" if it is not.

## sample
192.168.1.1
True