#include #define REP(i,n,N) for(int i=(n);i<(int) N;i++) #define p(s) cout<<(s)<>A>>B>>C; int ans=0; if(CK(B,A,C)||ck(B,A,C)) p("inf"); else { REP(i,1,1001){ if((CK(B%i,A%i,C%i)||ck(B%i,A%i,C%i))&&!(A%i==B%i||B%i==C%i||C%i==A%i)) ans++; } p(ans); } return 0; }