CSAU - Welcome to CSAU

no tags 

Welcome to the CSAU programming contest. CSAU decides to welcome their juniors in a special way. So they gave a simple problem to juniors and whoever solves the problem will be awarded with special gifts.

The problem is very simple. You will provided with a N×M rectangular board with lowercase English letters.

You need to find CSAU cards from the board. A CSAU card is 2×2 square in the board such that the 4 letters in the square form the word ‘csau’.

Input

The first line contains two space separated integers N and M

Following N lines describes the board. Each line contains M lowercase English letters.

Output

Print a single integer – the number of CSAU cards

Example

Input:
4 4
abcd
acsa
aaua
abcd

Output:
1
Input:
2 5
acsmw
suazb

Output:
2

hide comments
Min_25: 2015-10-07 14:23:53

Moved to tutorial.

abdou_93: 2015-10-07 11:19:49

tutorial


Added by:Raghavan
Date:2015-10-03
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64 GOSU JS-MONKEY
Resource:OWN PROBLEM