func_code_string: #include <bits/stdc++.h>   const double pi = 3.1415926535897932384626433832795;   int gcd(int a, int b) {     if (a == 0) return b;     return gcd(b % a, a);   }   using namespace std;   void ifd() {}   void tme() {}   int main() {     ifd();     string s, t, tmp;     getline(cin, s);     vector<string> d;     vector<int> check;     vector<int> r;     stringstream p;     p.clear();     p << s;     while (p >> t) d.push_back(t);     bool f = true;     for (int i = (0); i < (d.size()); ++i) {       tmp = d[i];       while (tmp.size() < 6) tmp =  ?  + tmp;       tmp = tmp.substr(tmp.size() - 6, 6);       if (tmp[2] ==  l  && tmp[3] ==  i  && tmp[4] ==  o  && tmp[5] ==  s ) {         check.push_back(1);         r.push_back(0);       } else if (tmp[2] ==  e  && tmp[3] ==  t  && tmp[4] ==  r  &&                  tmp[5] ==  a ) {         check.push_back(2);         r.push_back(1);       } else if (tmp[3] ==  e  && tmp[4] ==  t  && tmp[5] ==  r ) {         check.push_back(2);         r.push_back(0);       } else if (tmp[1] ==  l  && tmp[2] ==  i  && tmp[3] ==  a  &&                  tmp[4] ==  l  && tmp[5] ==  a ) {         check.push_back(1);         r.push_back(1);       } else if (tmp ==  initis ) {         check.push_back(3);         r.push_back(0);       } else if (tmp ==  inites ) {         check.push_back(3);         r.push_back(1);       } else {         cout <<  NO  << endl;         return 0;       }     }     int te = r[0];     for (int i = (0); i < (r.size()); ++i)       if (r[i] != te) f = false;     if (!f) {       cout <<  NO  << endl;       return 0;     }     if (check.size() == 1) {       cout <<  YES  << endl;       return 0;     }     int n1 = 0, n2 = 0, n3 = 0;     for (int i = (0); i < (check.size()); ++i) {       if (check[i] == 1) n1++;       if (check[i] == 2) n2++;       if (check[i] == 3) n3++;       if (i > 0 && check[i] < check[i - 1]) {         cout <<  NO  << endl;         return 0;       }     }     if (n1 >= 0 && n2 == 1 && n3 >= 0)       cout <<  YES  << endl;     else       cout <<  NO  << endl;     tme();     return 0;   }   