Imports System

class Program
    shared sub main ()
        dim t() as String = Console.ReadLine().Split(" ")
        dim a as Int32 = Int32.Parse(t(0))
        dim b as Int32 = Int32.Parse(t(1))
        dim c as Int32 = Int32.Parse(t(2))
        Console.WriteLine(b + Math.Min(c, a + b + 1))
    end sub
end class