#28463: py一行解


dxjh110267@gapp.hcc.edu.tw (東興國中劉秉學)


print(int(str(input())[::-1]))