N = int(input()) print((N - 3) * 5 + 3 if N > 3 else N)