import java.lang.*;
import java.io.*;

public class KBItf{
	static public String gets()
	{
		BufferedReader keyboard; 
		String str;

		keyboard = new BufferedReader(new InputStreamReader(System.in));
		try{
			str=keyboard.readLine();
		}
		catch(IOException e){
			System.out.println(e);
			return null;
		}
	  return str;
	}
	
	static public int geti(){
		int i=0;
		
		String aux = KBItf.gets();
		try{
		  i = Integer.parseInt(aux);
		}catch(NumberFormatException	e){
			 System.err.println(e.getMessage());
			 e.printStackTrace();
		}
	  return(i);
	}

	static public double getd(){
		double d=0.0;
		
		String aux = KBItf.gets();
		try{
		  d = Double.parseDouble(aux);
		}catch(NumberFormatException	e){
			 System.err.println(e.getMessage());
			 e.printStackTrace();
		}
	  return(d);
	}
}
	