N = int(input()) if N <= 10: print(2*N-1) else: print(2019)