l=[] for i in range(50): a,b=map(int,input().split()) arr=[a,b] l.append(arr) for i in l: if i[1]>=80: print(str(i[0])+" "+str(i[1]))