奶牛美容

题目描述

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

输入输出格式

输入格式


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

输出格式


输入输出样例

输入样例 #1

6 16
................
..XXXX....XXX...
...XXXX....XX...
.XXXX......XXX..
........XXXXX...
..XXX....XXX....

输出样例 #1

4