/*
 * Java Network Programming, Second Edition
 * Merlin Hughes, Michael Shoffner, Derek Hamner
 * Manning Publications Company; ISBN 188477749X
 *
 * http://nitric.com/jnp/
 *
 * Copyright (c) 1997-1999 Merlin Hughes, Michael Shoffner, Derek Hamner;
 * all rights reserved; see license.txt for details.
 */

import java.io.*;

public class SimpleIn {
  static public void main (String[] args) throws IOException {
    int charRead;
    while ((charRead = System.in.read ()) >= 0)
      System.out.write (charRead);
/*
    byte[] buffer = new byte[8];
    int numberRead;
    while ((numberRead = System.in.read (buffer)) >= 0)
      System.out.write (buffer, 0, numberRead);
 */
  }
}
