N = int(input()) ans = max(N, (N-3)*5+3) print(ans)