function z = greater(x, y)

mid = (x + y) / 2;
z = mid + abs(y - x) / 2;

end
