A = int(input()) ans = 2 * A - 1 print(ans)