main :: IO ()
main = do
  [a, b, c] <- map read . words <$> getLine
  print $ solve a b c

solve :: Int -> Int -> Int -> Int
solve a b c
  | a + b + 1 >= c = b + c
  | otherwise      = b + (a + b + 1)