#include #include #include using namespace std; using ll = long long; vector rot(vector p){ int h=p.size(), w=p[0].size(); swap(h, w); vector ans(h, string(w, '.')); for(int i=0; i> r >> k >> h >> w; vector s(h); for(auto&x:s) cin >> x; int c=r/90; for(int i=0; i