m, n = [ float(v) for v in input().split() ] ans = m + (n / 3) print(ans)