import java.io.*; public class FastInt { final static int BUFFER_SIZE = 65_536; final static DataInputStream inp = new DataInputStream (new BufferedInputStream (System.in, BUFFER_SIZE)); // Client call hasNext public static boolean hasNextInt () throws IOException { fill(); return hasInt; } public static int nextInt () throws IOException { hasInt = false; return n; } private static boolean eof = false; private static boolean hasInt = false; private static int n = 0; private static void fill () throws IOException { if (eof) return; try { byte b; // Skip white space while ((b=inp.readByte())<=((byte)0x20)) /**/ ; n = 0; for (;;) { hasInt = true; n *= 10; n += (b - '0'); b = inp.readByte(); if (b<=0x20) break; } } catch (EOFException ex) { eof = true; close(); } } private static void close () { } public static void main (String[] args) throws IOException { while (FastInt.hasNextInt()) { System.out.println (FastInt.nextInt()); } } }