import java.io.*;

class myInputs{ 

int inputInteger() throws IOException
	{
	
	String s = "";
	char x=' ';
	System.out.print("Input an integer:  End with CRNL  ");
	while((int) x != 10 & (int) x != 13)
		{
		 if (x != ' ')	
			{s = s + x;}
		 x = (char) System.in.read();
		 
		}
	
	System.in.skip(1);
	return Integer.valueOf(s).intValue();
	}

/* This function is the same as the above, except that it does not
   supply a user prompt.
   4/27/99 jjp
*/
int inputIntegerQuiet() throws IOException
	{
	
	String s = "";
	char x=' ';
	while((int) x != 10 & (int) x != 13)
		{
		 if (x != ' ')	
			{s = s + x;}
		 x = (char) System.in.read();
		 
		}
	
	System.in.skip(1);
	return Integer.valueOf(s).intValue();
}


float inputFloat() throws IOException
	{
	
	String s = "";
	char x=' ';
	System.out.print("Input a float:  End with CRNL  ");
	while((int) x != 10 & (int) x != 13)
		{
		 if (x != ' ')	
			{s = s + x;}
		 x = (char) System.in.read();
		 
		}
	
	System.in.skip(1);
	return Float.valueOf(s).floatValue();
	}

public static void main (String args[]) throws IOException {
	myInputs p = new myInputs();
	int x = p.inputInteger();
	System.out.println("x is " + x);
	System.out.println("x+1 is " + (x+1));

	float y =  p.inputFloat();
	System.out.println("y is " + y);
	System.out.println("y+1 is " + (y+1.0));

}}
