Company: Texas
Difficulty: medium
Network Address Classifier Given a string `address`, print `IPv4` if it is a valid IPv4 address, `IPv6` if it is a valid IPv6 address, otherwise print `Neither`. An IPv4 address has exactly four dot-separated decimal parts. Each part contains only digits, has no leading zero unless it is `0`, and is from 0 to 255. An IPv6 address has exactly eight colon-separated parts. Each part has 1 to 4 hexadecimal characters (`0-9`, `a-f`, `A-F`). Abbreviated IPv6 notation is not used in this task. Input Format The first line contains `T`. Each following line contains one address without spaces. Output Format For each address print its classification.