// calc3.java

import java.io.*;

public class calc3
 {
     public static void main(String[] args) 
      {
       int x, y, z, u;
       String inpu;
       InputStreamReader converter = new InputStreamReader(System.in);
       BufferedReader in = new BufferedReader(converter);


       System.out.println("Enter first integer:");
       try
       { 
         inpu = in.readLine();
         x = Integer.parseInt(inpu);
         System.out.println("Enter second integer:"); 
         inpu = in.readLine();
         y = Integer.parseInt(inpu);
       
         z = x + y;
         u = x * y;
         System.out.println(x + " + " + y + " = " + z); 
         System.out.println(x + " * " + y + " = " + u); 

       } // try
       catch(IOException  e)
        {
           System.out.println("IOException : "
                                          + e.getMessage());
        } // catch

      } // main
 } // calc3
