var f : text;
    n : longint;

begin
    assign(f, 'kabelis.in');
    reset(f);
    read(f, n);
    close(f);
    assign(f, 'kabelis.out');
    rewrite(f);
    writeln(f, 2*n - 1);
    close(f);
end.
