a = io.read("*n") print(a * 2 - 1)