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




1 float()转为浮点数
2 int()转为整数
3 %除以10,并取余