fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Scanner in = new Scanner (System.in);
  10. long n = in.nextLong ();
  11. System.out.print (n/100%10);
  12. }
  13. }
Success #stdin #stdout 0.1s 35328KB
stdin
512
stdout
5