import std.stdio;
long f(long a) {
return a % 1000000;
}
void main() {
foreach (i; 0 .. 2) {
writeln(typeid((i != 0) ? -1 : +1));
writeln(i, " ", ((i != 0) ? -1 : +1), " ", f((i != 0) ? -1 : +1));
}
foreach (i; 0 .. 2) {
foreach (j; 0 .. 2) {
writeln(typeid((i != 0) ? -1 : +1));
writeln(i, " ", j, " ", ((i != 0) ? -1 : +1), " ", f((i != 0) ? -1 : +1));
}
}
}
aW1wb3J0IHN0ZC5zdGRpbzsKCmxvbmcgZihsb25nIGEpIHsKICByZXR1cm4gYSAlIDEwMDAwMDA7Cn0KCnZvaWQgbWFpbigpIHsKICBmb3JlYWNoIChpOyAwIC4uIDIpIHsKICAgIHdyaXRlbG4odHlwZWlkKChpICE9IDApID8gLTEgOiArMSkpOwogICAgd3JpdGVsbihpLCAiICIsICgoaSAhPSAwKSA/IC0xIDogKzEpLCAiICIsIGYoKGkgIT0gMCkgPyAtMSA6ICsxKSk7CiAgfQogIGZvcmVhY2ggKGk7IDAgLi4gMikgewogICAgZm9yZWFjaCAoajsgMCAuLiAyKSB7CiAgICAgIHdyaXRlbG4odHlwZWlkKChpICE9IDApID8gLTEgOiArMSkpOwogICAgICB3cml0ZWxuKGksICIgIiwgaiwgIiAiLCAoKGkgIT0gMCkgPyAtMSA6ICsxKSwgIiAiLCBmKChpICE9IDApID8gLTEgOiArMSkpOwogICAgfQogIH0KfQo=