students = [] for _ in range(50): line = input().split() student_id = int(line[0]) score = int(line[1]) if score >= 80: print(student_id, score)