问题2302--Count the snowflakes!

2302: Count the snowflakes!

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

It's winter! Snow is everywhere! Also in your input file. But how many snowflakes are actually there? It is your job to find out!

输入

The input file contains several landscapes. Each landscape starts with a line containing a single integer n >= 1. This is followed by n lines, consisting of snowflakes('*') and other things (any other printable characters). There will be no line with more than 80 characters. A line containing only the number 0 terminates the input.

输出

For each landscape, output the line "Landscape #k:", where k is the number of the landscape. Then, output "j snowflakes", where j is the overall amount of '*' characters in the landscape. Output one blank line after each landscape.

样例输入 Copy

<pre>
7       
*  **      *
  */\*__  *
 */  \||
*/    \|    *
/  _   \  *
| |_|  |  
|      |*****
10
   _
 _|_|_                                            
  ***                                              
 *o*o*  V/                                      
 **l**  /                                      
  ***  /
 **o**/                                             
*******                                             
***o***
 *****
9
      *
     ***
    *****
   *******
  *********
 ***********
*************
     ***
    *****
0
</pre>

样例输出 Copy

Landscape 1
16 snowflakes

Landscape 2
35 snowflakes

Landscape 3
57 snowflakes