n = input() l = [x for x in n] if int(n) <= 0: print(0) elif len(n) <= 2: print(0) else: print(int(''.join(l[:-2])))