import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String inputStr = null;
        int [] scoreASM = new int[2];
        int j=1;
        int asmNumber = 3;
        while (asmNumber > 0){
            while (true) {
                try {
                    System.out.print("Assignment " + j + " score and max: ");
                    for (int i = 0; i < 2; i++) {
                        inputStr = sc.next();
                        scoreASM[i] = Integer.parseInt(inputStr);
                    }
                    break;
                } catch (NumberFormatException e) {
                    System.out.println("Invalid input. Please enter a Integer number");
                }
            }
            j ++;
            asmNumber --;
        }
    }
}