import sys input = sys.stdin.readline N = int(input()) print(max(N - 3, 0) * 5 + min(N, 3))