Cheeseburger Making
Time limit1sMemory limit1024 MB
Given A patties and B cheese slices, find the largest cheeseburger where the patty count is exactly one more than the cheese count.
Problem
Seunghyun works at a burger shop that has hamburger patties and slices of cheese for cooking. To make a cheeseburger, pick at least one patty and at least one slice of cheese, then stack them alternately between the bun halves. The number of patties must be exactly one more than the number of cheese slices.

Seunghyun wants to make one cheeseburger as large as possible from the ingredients in the shop. The size of a cheeseburger is the number of patties plus the number of cheese slices. Find the maximum size of cheeseburger Seunghyun can make.
Input
The first line contains the number of patties () and the number of cheese slices (), separated by a space.
Output
Print the maximum size of cheeseburger Seunghyun can make.