시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 372 264 245 77.287%

문제

어떤 단어를 뒤에서부터 읽어도 똑같다면 그 단어를 팰린드롬이라고 한다. 'radar', 'sees'는 팰린드롬이다.

수도 팰린드롬으로 취급할 수 있다. 수의 숫자들을 뒤에서부터 읽어도 같다면 그 수는 팰린드롬수다. 121, 12421 등은 팰린드롬수다. 123, 1231은 뒤에서부터 읽으면 다르므로 팰린드롬수가 아니다. 또한 10도 팰린드롬수가 아닌데, 앞에 무의미한 0이 올 수 있다면 010이 되어 팰린드롬수로 취급할 수도 있지만, 특별히 이번 문제에서는 무의미한 0이 앞에 올 수 없다고 하자.

입력

입력은 여러 개의 테스트 케이스로 이루어져 있으며, 각 줄마다 1 이상 99999 이하의 정수가 주어진다. 입력의 마지막 줄에는 0이 주어지며, 이 줄은 문제에 포함되지 않는다.

출력

각 줄마다 주어진 수가 팰린드롬수면 'yes', 아니면 'no'를 출력한다.

예제 입력 1

121
1231
12421
0

예제 출력 1

yes
no
yes
W3sicHJvYmxlbV9pZCI6IjEyNTkiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWQzMzBcdWI5YjBcdWI0ZGNcdWI4NmNcdWMyMTgiLCJkZXNjcmlwdGlvbiI6IjxwPlx1YzViNFx1YjVhNCBcdWIyZThcdWM1YjRcdWI5N2MgXHViNGE0XHVjNWQwXHVjMTFjXHViZDgwXHVkMTMwIFx1Yzc3ZFx1YzViNFx1YjNjNCBcdWI2MTFcdWFjMTlcdWIyZTRcdWJhNzQgXHVhZGY4IFx1YjJlOFx1YzViNFx1Yjk3YyBcdWQzMzBcdWI5YjBcdWI0ZGNcdWI4NmNcdWM3NzRcdWI3N2NcdWFjZTAgXHVkNTVjXHViMmU0LiAmIzM5O3JhZGFyJiMzOTssICYjMzk7c2VlcyYjMzk7XHViMjk0IFx1ZDMzMFx1YjliMFx1YjRkY1x1Yjg2Y1x1Yzc3NFx1YjJlNC48XC9wPlxyXG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