import java.io.*; public class Sisse1{ public static void main(String argumendid[]) throws Exception{ int arv; double distants; String s; PrintWriter valja=new PrintWriter(System.out, true); BufferedReader sisse=new BufferedReader( new InputStreamReader(System.in) ); valja.println("Osalejate arv:"); s=sisse.readLine(); arv=Integer.parseInt(s); valja.println("Vahemaa:"); distants=Double.parseDouble(sisse.readLine()); valja.println("Kokku läbiti "+arv*distants+" km"); } }