import sys from shunting import shunt for line in sys.stdin: print shunt(line.split())