if (M == 1) {
S1();
S2();
S3();
S4();
S5();
S6();
S7();
S8();
S9();
S10();
S11();
S12();
S13();
S14();
S15();
S16();
S17();
S18();
S19();
S20();
S21();
S22();
S23();
S24();
S25();
S26();
S27();
for (int c0 = 1; c0 <= N; c0 += 1) {
for (int c1 = 1; c1 <= N; c1 += 1) {
S28(c0, c1);
S29(c0, c1);
S30(c0, c1);
}
S31(c0);
}
S32();
S33();
S34();
if (O <= 1)
S35();
S36();
S37();
for (int c0 = 2; c0 <= P; c0 += 1) {
S38(c0);
S39(c0);
for (int c1 = 1; c1 <= Q; c1 += 1)
for (int c2 = 1; c2 <= R; c2 += 1) {
S40(c0, c1, c2);
S41(c0, c1, c2);
S42(c0, c1, c2);
S43(c0, c1, c2);
}
for (int c1 = 1; c1 <= Q; c1 += 1) {
S44(c0, c1);
S45(c0, c1);
S46(c0, c1);
S47(c0, c1);
}
for (int c1 = 1; c1 <= R; c1 += 1) {
S48(c0, c1);
S49(c0, c1);
S50(c0, c1);
S51(c0, c1);
}
S52(c0);
S53(c0);
S54(c0);
S55(c0);
S56(c0);
S57(c0);
S58(c0);
for (int c1 = 1; c1 <= Q; c1 += 1)
for (int c2 = 1; c2 <= R; c2 += 1) {
S59(c0, c1, c2);
S60(c0, c1, c2);
S61(c0, c1, c2);
}
for (int c1 = 1; c1 <= Q; c1 += 1) {
S62(c0, c1);
S63(c0, c1);
S64(c0, c1);
}
for (int c1 = 1; c1 <= R; c1 += 1) {
S65(c0, c1);
S66(c0, c1);
S67(c0, c1);
}
S68(c0);
S69(c0);
S70(c0);
S71(c0);
S72(c0);
S73(c0);
S74(c0);
S75(c0);
S76(c0);
S77(c0);
S78(c0);
S79(c0);
S80(c0);
S81(c0);
S82(c0);
S83(c0);
S84(c0);
S85(c0);
S86(c0);
S87(c0);
S88(c0);
S89(c0);
S90(c0);
S91(c0);
S92(c0);
S93(c0);
S94(c0);
for (int c1 = 1; c1 <= N; c1 += 1) {
for (int c2 = 1; c2 <= N; c2 += 1) {
S95(c0, c1, c2);
S96(c0, c1, c2);
S97(c0, c1, c2);
}
S98(c0, c1);
}
S99(c0);
S100(c0);
S101(c0);
for (int c1 = 1; c1 <= Q; c1 += 1)
for (int c2 = 1; c2 <= R; c2 += 1) {
S102(c0, c1, c2);
S103(c0, c1, c2);
S104(c0, c1, c2);
S105(c0, c1, c2);
S106(c0, c1, c2);
S107(c0, c1, c2);
}
for (int c1 = 1; c1 <= Q; c1 += 1) {
S108(c0, c1);
S109(c0, c1);
S110(c0, c1);
S111(c0, c1);
S112(c0, c1);
S113(c0, c1);
}
for (int c1 = 1; c1 <= R; c1 += 1) {
S114(c0, c1);
S115(c0, c1);
S116(c0, c1);
S117(c0, c1);
S118(c0, c1);
S119(c0, c1);
}
S120(c0);
S121(c0);
S122(c0);
S123(c0);
S124(c0);
S125(c0);
}
}