ZOAC 6
InterviewTime limit1sMemory limit1024 MB
Count the sentences that contain the substring 01 or OI, since each such sentence gets one Yeongil emoticon.
- Level
Easy2 of 10
- Topics
- String, String matching
- Solved
- No attempts yet
Problem
In September 2023, Seongu, who once again opened ZOAC for its sixth edition, decided to promote the contest with Yeonggwail's mascot, Yeongil.
When given a promotional text, Seongu adds one Yeongil emoticon at the end of each sentence that contains 01 or OI. Find the total number of Yeongil emoticons Seongu must add to the promotional text.

Input
The first line contains the number of sentences in the promotional text.
From the second line, the next lines each contain a sentence . It is guaranteed that consists only of English letters and digits, with no spaces.
Output
Print the number of Yeongil emoticons added to the promotional text.