func_code_string: #include <bits/stdc++.h>   using namespace std;   const int maxn = 1e4 + 7;   const int inf = 0x3f3f3f3f;   int a[maxn];   char s[150];   int main() {     int t;     cin >> t;     while (t--) {       int n;       cin >> n;       scanf( %s , s);       int x = 0, y = 0;       for (int i = 0; i < n; i++) {         if (s[i] ==  < )           x++;         else           break;       }       for (int i = n - 1; i >= 0; i--) {         if (s[i] ==  > )           y++;         else           break;       }       cout << min(x, y) << endl;     }     return 0;   }   