N = int(input()) if N <= 3: raise ValueError print(5*N-12)