import java.io.*;

class TestInput {
  public static void main(String[] args)
    throws Exception{
    BufferedReader r = new BufferedReader(
        new InputStreamReader(System.in));

    int a;
    double x;
    String str;

    System.out.print("Ведите строку: ");
    str = r.readLine();
    System.out.print("Введите целое число: ");
    a = Integer.parseInt(r.readLine());
    System.out.print("Введите действительное" +
                     " число: ");
    x = Double.parseDouble(r.readLine());

    System.out.println("str=" + str + ", a=" +
                        a + ", x=" + x);
  }
}
