#include <bits/stdc++.h>   using namespace std;   vector<int> ans;   int m;   int main() {     int n, ans = 0;     string s;     cin >> n;     cin >> s;     for (int i = 0; i < n; i++)       if (s[i] ==  < )         ans++;       else         break;     for (int i = n - 1; i >= 0; i--)       if (s[i] ==  > )         ans++;       else         break;     cout << ans;     return 0;   }   