F(n)=if(n,n-M(F(n-1)),1) M(n)=if(n,n-F(M(n-1)),0)