# coding:utf-8 N = int(input()) if N%2==1: a = N else: a = N//2 ans = 1 ans+=a//N*N print(ans)