func_code_string: #include <bits/stdc++.h>   using namespace std;   char c[100003], b[100003];   int ggg[100003];   string a;   long long d, e, f, g, ming, oo, ksa, lxy;   bool nn, o;   int main() {     gets(c);     c[strlen(c)] =    ;     a = c;     for (int i = 0; i <= a.length(); i++) {       if (a.substr(i, 1) ==    ) {         if (o == 0) {           if (i >= 5 && a.substr(i - 5, 5) ==  liala )             nn = 1;           else if (i >= 4 && a.substr(i - 4, 4) ==  etra )             nn = 1;           else if (i >= 6 && a.substr(i - 6, 6) ==  inites )             nn = 1;           o = 1;         }         if (!nn) {           if (i >= 3 && a.substr(i - 3, 3) ==  etr ) {             ming += 1;             g++;             ggg[g] = 2;           } else if (i >= 6 && a.substr(i - 6, 6) ==  initis ) {             g++;             ggg[g] = 3;           } else if (i >= 4 && a.substr(i - 4, 4) ==  lios ) {             g++;             ggg[g] = 1;           } else {             cout <<  NO  << endl;             return 0;           }         }         if (nn) {           if (i >= 4 && a.substr(i - 4, 4) ==  etra ) {             g++;             ggg[g] = 2;             ming += 1;           } else if (i >= 6 && a.substr(i - 6, 6) ==  inites ) {             g++;             ggg[g] = 3;           } else if (i >= 5 && a.substr(i - 5, 5) ==  liala ) {             g++;             ggg[g] = 1;           } else {             cout <<  NO  << endl;             return 0;           }         }         oo++;       }     }     if (oo == 1) {       if (a.length() >= 5 && a.substr(a.length() - 5, 4) ==  lios ) ming = 1;       if (a.length() >= 4 && a.substr(a.length() - 4, 3) ==  etr ) ming = 1;       if (a.length() >= 7 && a.substr(a.length() - 7, 6) ==  inites ) ming = 1;       if (a.length() >= 7 && a.substr(a.length() - 7, 6) ==  initis ) ming = 1;       if (a.length() >= 6 && a.substr(a.length() - 6, 5) ==  liala ) ming = 1;       if (a.length() >= 5 && a.substr(a.length() - 5, 4) ==  etra ) ming = 1;     }     for (int i = 1; i <= 100002; i++) {       if (ggg[i] == 0) {         ksa = 1;         break;       }       if (ggg[i] < ggg[i - 1]) break;     }     if (ming == 1 && oo == 1) {       cout <<  YES  << endl;       return 0;     } else if (oo == 1) {       cout <<  NO  << endl;       return 0;     }     if (ming == 1 && ksa == 1)       cout <<  YES  << endl;     else       cout <<  NO  << endl;     return 0;   }   