#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[]) {

	char tmp[32000];
	int MAX = 0, i = 0;


	while (1)  {
		if (fgets(tmp, 32000, stdin) == NULL) break;
		if (tmp[0] == '>') i++;
		}

	printf("%d\n", i - 1);

	}

