import ipaddress, sys

a = list(ipaddress.IPv4Network(sys.argv[1]).subnets())

for x in a:
        print(x)
        print(list(x.hosts()))
