x = int(input()) print(x * 2 - 1)