#include int main(){ int W,H; char C,D; scanf("%d %d %c",&W,&H,&C); for (int i=0;i