# Задание 1 ''' from math import sqrt a, b = int(input()), int(input()) print(a*a if abs(a+b) >= 20 else sqrt(abs(b))) # Задание 2 marks = ['-', 'отвратительно', 'плохо', 'удовлетворительно', 'хорошо', 'отлично'] n = int(input()) print(marks[n] if 1 <= n <= 5 else 'Такой оценки нет') #Задание 3 x, y, a, b = int(input()), int(input()), int(input()), int(input()) print('7A' if (a % x) > (b % y) else '7Б') #Задание 4 x = int(input()) print(30 - (x/(x-5)) if x == 100 else (13*x*x + x if x < 100 else x*x*x-100)) ''' #Задание 5 x = int(input()) print(3*x - 7 if x < 4 else 5*x*x)