Determine all functions f: R → R such that

for all real x and y.

Source: Polish Mathematics Olympiad