public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); float f = sc.nextFloat(); int newf = (int)(f); System.out.println(newf%10); } }