# 输入一个整数
a = int(input())
# 计算十位数
b = abs(a) // 10 % 10
# 输出结果
print(b)