Tiger Zinda Hai

easy
1. Chirag is downloading the movie Tiger Zinda Hai using a torrent website, but he is new to torrent, so he doesn't know the difference between a fake download button and a real download button; therefore, he keeps pressing every button in excitement. 2. Now he has clicked N buttons, and many tabs are opened , if a opened tab is clicked again it gets closed. 3. Your task is to tell how many tabs are open at the end.

Input Format

First line of every test case consists of an integer N. Next line will be the N strings(containing integers or "END"). Integers denote the name of the tag. The "END" button means that all the tabs opened till now will be closed.

Output Format

Return an integer(Number of tabs opened at the end)

Constraints

1<=N<=1000

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
5
1 2 1 END 2
Output
1
Previous
Swapping Pairs Make Sum Equal
Next
Tom And String

Related Questions