#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} }; map memo; ll comb(ll n, ll r){ if(n < r) return 0; if(n == r || r == 0){ return 1; }else if(r == 1){ return n; }else if(memo[Pll(n, r)] != 0){ return memo[Pll(n, r)]; }else{ ll tmp = comb(n-1, r-1) + comb(n-1, r); return memo[Pll(n, r)] = min(2000LL, tmp); } } int main() { std::ios::sync_with_stdio(false); cin.tie(nullptr); ll n, k; cin >> n >> k; ll n_lines = max({n/k, k}); cout << n_lines << endl; vector> a(n_lines, vector(n_lines, '.')); vector line_count(n_lines), row_count(n_lines); int j = 0, cnt = 0; for(int i=0;i