print(int(input())//10%10)       
# / 用于真除法,返回浮点数
# //用于地板除法,返回商的正数部分