import std.stdio, std.algorithm, std.range; ulong seed; int next() { seed = seed ^ (seed << 13); seed = seed ^ (seed >> 7); seed = seed ^ (seed << 17); return cast(int)(seed >> 33); } immutable B = 300000; immutable S = (1L<<32) / B + 1; void main() { int n; int q; readf("%d %d %d\n", &n, &q, &seed); foreach (i; 0..10000) next(); int[] a = new int[n]; foreach (i; 0..n) a[i] = next(); a.sort!"a