#include<bits/stdc++.h> using namespace std; int main() { char a[100]; bool f=0,vl=1; int count=0; while(gets(a)) { f=0; vl=1; count=0; for(int i=0;a[i]!='\0';i++) { if((a[i]>='0'&&a[i]<='9')) vl=1; else if(a[i]=='.') { vl=1; count++; } else { vl=0; break; } } if(vl==0||count>1) { cout<<"Operator\n"; } else { for(int i=0;a[i]!='\0';i++) { if(a[i]=='.') { f=1; } } if(f==1&&count==1) cout<<"Float\n"; else cout<<"Integer\n"; } } } by saikat