n = int(input()) temp = {} for i in range(0, n): s =input() key = int(s.split(" ")[0]) value = int(s.split(" ")[1]) if key&n...