IPv6 or IPv4

4

1 votes
Very-Easy
Problem

Given the IP addresses, find whether it belongs to IPv6 or IPv4.

Input Format

IPv4 or IPv6 address

Output Format

‘6’ if it belongs to IPv6 or ‘4’ if it belongs to IPv4 (without quotes)

Constraints:

No need to tell

Sample Input
123.21.21.10
Sample Output
4
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?