import std;

void main() {
    int A;
    readf("%d\n", A);

    int res = A * 2 - 1;
    res.writeln;
}