o="" while 1:o=map(lambda a,b:b<"!"and a or b,o,raw_input());print`o`[2::5]