#include using namespace std; using ll = long long; using P = pair; #define rep(i,n) for(int i=0;i> d; vector c; int i = 0; while (c.size()