시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB1331159588.785%

문제

Julia enjoys talking to her grandma, playing with legos, and inventing two-player card games where she has a winning strategy. Recently however, she has not been able to talk to her grandma in person because of some kind of "pandemonium". Instead, they have resorted to texting, which is a very slow process since grandma types very slowly and often mistypes letters. To make matters worse, grandma has started to write every word three times so that Julia can correct her mistypes. For example, if grandma wants to write the word "hello", she will instead write "hellohellohello". If she mistypes one of those letters, it might instead be sent as "hellohrllohello'.'

Your task is to write a program that given a message sent by grandma, where possibly one letter has been changed to some other letter, finds the original word.

입력

The input consists of one string $s$ containing lower case English letters ($3 \leq |s| \leq 99$). This is the message sent by grandma. It is guaranteed that this string is the result of a word being written three times, where possibly one letter was changed to some other letter.

출력

Output one string $t$, the original word.

예제 입력 1

hellohrllohello

예제 출력 1

hello

예제 입력 2

hejhejhej

예제 출력 2

hej