import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); sc.close(); if (s.charAt(0) == '-') { System.out.println(0); } else if (s.length() < 3) { System.out.println(0); } else { System.out.println(s.substring(0, s.length() - 2)); } } }