with open('input.txt', 'r') as input_data:
with open('output.txt', 'w') as output_data:
for line in input_data:
penult, ult = [float(num) for num in line.split('\t')[-2:]]
if penult >= 70 and ult >= 90:
output_data.write(line)