a=int(input())
print(a%10)

1 a%10,a对10取余数,===取个位数的数字
2
3