Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
Key Words
Time Limit: 2000ms, Special Time Limit:5000ms, Memory Limit:65536KB
Total submit users: 31, Accepted users: 30
Problem 11597 : No special judgement
Problem description
  ACai is teaching his students PHP which is worth ¥8, 800 per person. He tells everybody that there are fifteen key words in PHP (Again, doní»t be serious in the real world but only here). Here is the list:
as  break  case  class  const  continue
declare  default  else  elseif  enddeclare
endfor  endforeach  endif  endswitch
ACai will give you an essay and ask you how many times these key words appear in the essay. There are only lowercase letters and space in the essay, and the words are separated with spaces or newline characters.

Input
  An essay with not more than 100 lines, and not more than 1000 words, and each word will contain not more than 26 letters.

Output
  One line, the answer.

Sample Input
as as break
what are you talking about
it is else
Sample Output
4
Problem Source
  HUNNU Contest 

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2167 today,16258894 total, since 2010-05-07