package lab3;

import java.util.Scanner;

public class Example11 {
    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        // ===== Timus 1409 — Two Gangsters =====
        System.out.print("Timus 1409. Enter Harry shots and Larry shots: ");
        int harry = in.nextInt();
        int larry = in.nextInt();

        int total = harry + larry - 1;
        System.out.println("Harry missed: " + (total - harry));
        System.out.println("Larry missed: " + (total - larry));

        // ===== Timus 1264 — Workdays =====
        System.out.print("Timus 1264. Enter N (lines) and M (days): ");
        int n = in.nextInt();
        int m = in.nextInt();

        System.out.println("Result: " + (n * (m + 1)));

        in.close();
    }
}
