word = list(str(input())) if list(reversed(word))==word : print(1) else : print(0)
reversed 함수를 사용하면 리스트의 요소들을 거꿀로해서 반환해준다...! 기억하자 !