func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, p = 0, q = 0;     cin >> n;     string str;     cin >> str;     for (int i = 0; i < n; i++) {       if (str[i] ==  F  && str[i + 1] ==  S ) p = p + 1;       if (str[i] ==  S  && str[i + 1] ==  F ) q = q + 1;     }     if (q > p)       cout <<  YES ;     else       cout <<  NO ;   }   