import java.io.*;

public class BetterBR extends BufferedReader
{   public BetterBR() throws IOException     // default constructor
    {   super(new InputStreamReader(System.in));    }
    
    public BetterBR(String fileName ) throws IOException   //one arg constructor
    {   super(new FileReader(fileName));    }
    
    public int readint() throws IOException  // simplier way to read integers
    {   String line;
        line = readLine();
        return Integer.parseInt(line);
    }
/************************************************************/

    public static void main(String[] arg) throws IOException
    {
        int i;
        String s;
        BetterBR bbr = new BetterBR("junk");
        i = bbr.readint();
        while (i>= 0)  // drop out of loop with a negative number
            {   System.out.println("i = " +i);
                i = bbr.readint();
            }
        s = bbr.readLine();
        while (s != null)   // read until end of file
            {   System.out.println("s = " +s);
                s = bbr.readLine();
            }  // end while
        }  // end main
    }  //end class BetterBR
    

