#include<bits/stdc++.h>
using namespace std;
int main(){
double n,a; cin>>n>>a; if((n-100)*0.9==a) cout<<"standard"; if((n-100)*1.1<=a) cout<<"fat"; if((n-100)*0.9>=a) cout<<"thin"; return 0;
}