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