while True: try: ip_str = input().split('.') ip_num = input() for i in range(len(ip_str)): binary = bin(int(ip_str[i], 10))[2:] n = len(binary) ip_str[i] = binary if n == 8 else '0'(8-n%8)+binary print(int(''.join(ip_str), 2)) bin_str = bin(int(ip_num))[2:] n = len(bin_str) bin_str = bin_str if n ==...