gcd(p,q){return q?gcd(q,p%q):p;} phi(m){ int i,s=0; for(i=1;i