import java.io.*;

/**
 * An example of value-type I/O 
 * (that might not behave as expected)
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class DataReader
{

    /**
     * The entry point
     *
     * @param args   The command-line arguments
     */
    public static void main(String[] args) throws Exception
    {
       DataInputStream     in;
       double              d;
       int                 i;
       
       
       in = new DataInputStream(System.in);
       System.out.print("\nEnter an int: ");
       i = in.readInt();
       System.out.println("\nYou entered "+i);
       
       System.out.print("\nEnter a double: ");
       d = in.readDouble();
       System.out.println("\nYou entered "+d);
    }

}
