Codeforces Round #186 (Div. 2) A. Ilya and Bank Account
やるだけ
A. Ilya and Bank Account
#!/usr/bin/env python3
s = input()
y = int(s)
for i in [1,2]:
t = s[:len(s)-i] + s[len(s)-i+1:]
if len(t) and t != '-':
x = int(t)
y = max(x, y)
print(y)