count = int(input()) num_dict = {} for i in range(count): key, value = map(int,input().split()) if key in num_dict.keys(): num_dict[key]&nb...