Certification
Teacher of Math prepared samples for pupils with arithmetical actions +, -, *, : for certification. Every sample has some quantity of arithmetical actions. For receive certification every pupil must solve samples from list, but you must use that way where every sample with more number from list has more quantity of arithmetical actions.
How many ways you can create from list, that every way have sample.
Input
First line of input file has two numbers: is a quantity of samples, which prepared the teacher, and K is quantity of samples, which you must solve for pass an examination.
Next we have lines, which number is equal to number of problem and have one sample with arithmetical actions +, -, *, :.
, . The quantity of arithmetical actions in sample does not exceed .
Output
One number is quantity of differences ways. Two different ways must be differ one problem even if. If you can create any ways, than output .