while 1:S=raw_input()+';';exec(S*9+"print "+S[-2],dict(zip(S,S)))