Working ob Program 1

Program 1 in IntelliJ