while 1: s=raw_input() try:print s.split()[1] except:print