package laba1;

import java.util.Scanner;
import java.time.LocalDate;

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

        Scanner in = new Scanner(System.in);

        System.out.print("Enter your age: ");
        int age = in.nextInt();

        int currentYear = LocalDate.now().getYear();
        int birthYear = currentYear - age;

        System.out.println("Your year of birth is " + birthYear);

        in.close();
    }
}
