#K41432. Defanging an IP Address

    ID: 26864 Type: Default 1000ms 256MiB

Defanging an IP Address

Defanging an IP Address

You are given a string representing an IP address. The task is to "defang" the IP address by replacing every period . with [.]. This is a simple string manipulation problem that tests your ability to process and modify strings.

For example, if the input is 192.168.0.1, the correct output is 192[.]168[.]0[.]1.

Please read the input from standard input and write the defanged IP address to standard output.

inputFormat

The input consists of a single line containing a string that represents an IP address. The string may be empty or may not contain any periods.

Input is provided via standard input (stdin).

outputFormat

Output a single line containing the defanged IP address where every period (.) is replaced with [.]. The result should be printed to standard output (stdout).

## sample
192.168.0.1
192[.]168[.]0[.]1