Today, most social media platforms will recommend videos to users. On the page having that function, videos appear in a certain order, according to both the user preference and the ratings of videos. The rating of a video is related to likes, dislikes, finish rate and comments. In this problem, we adopt a simplified approach to calculate the rating of a video, that is, rating = likes - dislikes .
There are people leaving a comment after watching a video, which is either a like or a dislike. You are asked to calculate the rating of this video.
Input
第一行一个整数 。
接下来 行,每行一个字符串,为 “” 或 “” 之一,表示观众留下的评价。
第一行一個整數 。
接下來 行,每行一個字符串,為 “” 或 “” 之一,表示觀眾留下的評價。
The first line of the input contains an integer .
In the following lines, each line contains a string, which is either or , representing the comment left by an audience.
Output
一个整数,表示视频的“评分”。
一個整數,表示視頻的“評分”。
Write an integer in one line, representing the rating of the video.