[AHOI2004]智能探险车

题目描述

![](https://cdn.luogu.org/upload/pic/1657.png)

输入输出格式

输入格式


![](https://cdn.luogu.org/upload/pic/1658.png)

输出格式


![](https://cdn.luogu.org/upload/pic/1659.png)

输入输出样例

输入样例 #1

4 3
sunny plain full many
sunny mountain full many
sunny mountain full few

输出样例 #1

sunny * full *