print((lambda x:x[0]+x[1]/3)([int(i)for i in input().split()]))