Олимпиадный тренинг

Задача 39825. Task 5


Complete the  f1(n)  and f2(n) functions so that the program displays the number 29.