#include <bits/stdc++.h>   using namespace std;   char c[200010];   int main() {     int n;     while (scanf( %d , &n) != EOF) {       memset(c, 0, sizeof c);       scanf( %s , c);       int ans = 0;       for (int i = 0; i < n; i++) {         if (c[i] ==  < )           ans++;         else           break;       }       for (int i = n - 1; i >= 0; i--) {         if (c[i] ==  > )           ans++;         else           break;       }       printf( %d n , ans);     }     return 0;   }   