a = input()
print(int(a)+int(a[::-1]))