#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using Pll = pair; using Pii = pair; constexpr ll MOD = 1000000007; constexpr long double EPS = 1e-10; constexpr int dyx[4][2] = { { 0, 1}, {-1, 0}, {0,-1}, {1, 0} }; int main() { std::ios::sync_with_stdio(false); cin.tie(nullptr); int n, k; cin >> n >> k; int n_lines = 0, n_black = 0; while(n_black < n) { n_lines += k; n_black += k*k; } vector> a(n_lines, vector(n_lines, '.')); int cnt = 0; for(int i=0;i