S=input() if S[0]=='-' or len(S)<3: print(0) else: print(S[0:len(S)-2])