red_c, green_c, blue_c = int(input()), int(input()), int(input())
print(red_c + blue_c + 1)