m, n = (int(x) for x in input().split()) print("{:.12f}".format(m + n / 3))