import javax.swing.*;
class MathSample
{
public static void main( String[] args )
{
int a;
int b;
int c;
a = Integer.parseInt(JOptionPane.showInputDialog("Enter a number:"));
b = Integer.parseInt(JOptionPane.showInputDialog("Enter another number:"));
c = a + b;
System.out.println("The sum of " + a + " and " + b + " is " + c);
}
}