import sys

with open(sys.argv[1]) as input_file:
	for problem in input_file.readlines():
		print(problem.strip().split(' ')[-2])

import sys

with open(sys.argv[1]) as input_file:
	for problem in input_file.readlines():
		print(problem.strip().split(' ')[-2])
