g x y x g x y y f s x y y f y x s x rand x x rand x rand s x s 1 f 3 rand 1 g 2 FULL