#include #include #include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,x; cin>>n>>x; vector a(n),b(n); for(int i = 0;i>a[i]>>b[i]; int ans = 0; for(int i = 1;i<=x;i++){ int cnt = 0; for(int j = 0;j1) cout<<" "; cout<