using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int ans = n * 2 - 1; Console.WriteLine(ans); } }