#include #include using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000000 int main(){ int A,B,C; cin>>A>>B>>C; if(gcd(A,gcd(B,C))!=1){ cout<<"INF"< b; b[0] = true; rep(i,TT/A){ b |= b<