import javax.swing.*;



public class LearnAddition {

  public static void main(String[] args) {

    int number1 = (int)(System.currentTimeMillis() % 10);

    int number2 = (int)(System.currentTimeMillis() * 7 % 10);



    String answerString = JOptionPane.showInputDialog

      ("What is " + number1 + " + " + number2 + "?");



    int answer = Integer.parseInt(answerString);



    JOptionPane.showMessageDialog(null,

      number1 + " + " + number2 + " = " + answer + " is " +

      (number1 + number2 == answer));

  }

}