#K7101. IPv4 Address Validator

    ID: 33436 Type: Default 1000ms 256MiB

IPv4 Address Validator

IPv4 Address Validator

This problem asks you to implement a function that determines whether a given string is a valid IPv4 address. An IPv4 address is defined as four decimal numbers (called octets) separated by dots. Each octet must be in the range \(0 \leq n \leq 255\) and must not contain extra leading zeros (except when the octet is exactly '0'). You are required to read the input from standard input (stdin) and output the result to standard output (stdout).

inputFormat

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

outputFormat

Output True if the provided IP address is valid; otherwise, output False.

## sample
192.168.0.1
True