CSAU - Welcome to CSAU

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

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

hide comments
2015-10-07 14:23:53 Min_25
Moved to tutorial.
2015-10-07 11:19:49 abdou_93
tutorial
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.