NSU, semester 4. Java, task1