/*
 * Keyboard.java
 *
 * Simple class to get input from the keyboard
 *
 * Nadeem Abdul Hamid
 * CS120A - Fall 2004
 *
 */

import java.io.*;

public class Keyboard {
    private static BufferedReader in = new BufferedReader(
                new InputStreamReader(System.in));
    
    
    public static String readString() {
        String line = "";
        try {
            line = in.readLine();
        } catch (IOException e) {
            System.out.println(e);
            System.exit(-1);
        }
        return line;
    }
    
    
    public static int readInt() {
        return Integer.parseInt(readString());
    }
    
    
    public static double readDouble() {
        return Double.parseDouble(readString());
    }
}