import java.util.Scanner;

public class AdditionQuiz {
  public static void main(String[] args) {
    int number1 = (int)(System.currentTimeMillis() % 10);
    int number2 = (int)(System.currentTimeMillis() / 10 % 10);

    // Tworzenie obiektu typu Scanner
    Scanner input = new Scanner(System.in);

    System.out.print(
      "Ile wynosi " + number1 + " + " + number2 + "? ");

    int answer = input.nextInt();

    System.out.println(
      number1 + " + " + number2 + " = " + answer + " to " +
      (number1 + number2 == answer));
  }
}
