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