'''****** Задание ******** *Шарики и ручки. ''' red = int(input()) green = int(input()) blue = int(input()) print(red + blue + 1)