import std.stdio, std.container;
void main() {
auto q = heapify(Array!int([44, 22, 100, -1, 0, 5, 6, 7]));
while (!q.empty) {
write(q.front, " ");
q.removeFront;
}
}
aW1wb3J0IHN0ZC5zdGRpbywgc3RkLmNvbnRhaW5lcjsKCnZvaWQgbWFpbigpIHsKICBhdXRvIHEgPSBoZWFwaWZ5KEFycmF5IWludChbNDQsIDIyLCAxMDAsIC0xLCAwLCA1LCA2LCA3XSkpOwogIHdoaWxlICghcS5lbXB0eSkgewogICAgd3JpdGUocS5mcm9udCwgIiAiKTsKICAgIHEucmVtb3ZlRnJvbnQ7CiAgfQp9