def main(): S = input() S_deleted = "" before = "A" for letter in S: if before == letter: continue before = letter S_deleted += before print(S_deleted) if __name__ == "__main__": main()