func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long n;     while (cin >> n) {       string x;       cin >> x;       long long c = 0;       long long arr[n + 5];       memset(arr, 0, sizeof(arr));       for (long long i = 0; i < n; i++) {         if (x[i] ==  < ) {           if ((i - 1) < 0 || arr[i - 1] == 1) arr[i] = 1;         } else if (x[i] ==  > ) {           long long lft = i;           while (i < n && x[i] ==  > ) i++;           if (i >= n) {             long long rgt = i;             c += (rgt - lft);           } else             i--;         }       }       for (long long i = 0; i < n; i++)         if (arr[i] == 1) c++;       cout << c << endl;     }     return 0;   }   