#include #include #include #include int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int i,j,sea=0,h=0,n,count=0; char a[1000000]; scanf("%d",&n); if(n<2) exit(0); for(i=0;i