// writes a method with a class and class it
// converts metres to inches

import java.io.*;

public class Simple

{
    public static double convertMetre(double metre)

	{

	   double inches = (metre *39.37);
	   return(inches);
	}// Class within a class without a main 

	
	public static void main(String args[]) throws IOException 

	{

		//create a bufferreadser object rd to read the InputStreamReader

		BufferedReader rd = new BufferedReader(new InputStreamReader(System.in));

		String s = new String();
		double metre,inches;

		System.out.print("Enter number of metres" + " ");
		System.out.flush();

		s=rd.readLine();

		Double m = new Double(s);  // converts string to float
		metre = m.doubleValue();   // sets inches equals to m
		inches= convertMetre(metre);  // uses the convert method to convert metres to inches

	System.out.println("There are " + inches + " inches in " + metre + " metres.");

	}// ends the main
}//ends the class Simple