CF725A Jumping Ball
Description
In a new version of the famous Pinball game, one of the most important parts of the game field is a sequence of $ n $ bumpers. The bumpers are numbered with integers from $ 1 $ to $ n $ from left to right. There are two types of bumpers. They are denoted by the characters ''. When the ball hits the bumper at position $ i $ it goes one position to the right (to the position $ i+1 $ ) if the type of this bumper is '>', or one position to the left (to $ i-1 $ ) if the type of the bumper at position $ i $ is '
Input Format
The first line of the input contains a single integer $ n $ ( $ 1
Output Format
Print one integer — the number of positions in the sequence such that the ball will eventually fall from the game field if it starts at that position.
Explanation/Hint
In the first sample, the ball will fall from the field if starts at position $ 1 $ or position $ 2 $ .
In the second sample, any starting position will result in the ball falling from the field.