#include using namespace std; typedef long long int64; int N, M; int64 x, d; string S[800000]; int main() { cin >> N; assert(1 <= N && N <= 100000); int all = 0; for(int i = 0; i < N; i++) { cin >> S[i]; for(auto &c : S[i]) assert(islower(c)); all += S[i].size(); } assert(1 <= all && all <= 800000); cin >> M >> x >> d; assert(1 <= M && M <= 3000000); assert(0 <= x && x < 1LL * N * (N - 1)); assert(0 <= d && d < 1LL * N * (N - 1)); }