print(""++io.Source.stdin replaceAll("(@*(.))\\1*","$2"))