m, n = map(int, input().split()) ans = m + 1/3*n print(ans)