n = input().strip() if n.startswith('-'): print(0) else: stripped = n.lstrip('0') if not stripped: stripped = '0' if len(stripped) < 3: print(0) else: q_str = stripped[:-2] q_stripped = q_str.lstrip('0') or '0' q = int(q_stripped) print(q)