Example

Input

7
>>


Output

7
#include<iostream>
#include<string>
using namespace std;
string S; int n;
int main() {
	cin >> n >> S; int cnt = 0;
	for (int i = 0; i < S.size() / 2; i++) {
		if (S[i] == '<' && S[S.size() - 1 - i] == '>')cnt++;
		else break;
	}
	cout << n - cnt << endl;
	return 0;
}