-
Notifications
You must be signed in to change notification settings - Fork 19
/
AffineMatrixColPEBox.hpp
888 lines (883 loc) · 48.4 KB
/
AffineMatrixColPEBox.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
/**
* PEIGEN: a Platform for Evaluation, Implementation, and Generation of S-boxes
*
* Copyright 2019 by
* Zhenzhen Bao <baozhenzhen10[at]gmail.com>
* Jian Guo <guojian[at]ntu.edu.sg>
* San Ling <lingsan[at]ntu.edu.sg>
* Yu Sasaki <yu[dot]sasaki[dot][email protected]>
*
* This platform is developed based on the open source application
* <http://jeremy.jean.free.fr/pub/fse2018_layer_implementations.tar.gz>
* Optimizing Implementations of Lightweight Building Blocks
*
* Copyright 2017 by
* Jade Tourteaux <Jade[dot]Tourteaux[at]gmail.com>
* Jérémy Jean <Jean[dot]Jeremy[at]gmail.com>
*
* We follow the same copyright policy.
*
* This file is part of some open source application.
*
* Some open source application is free software: you can redistribute
* it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* Some open source application is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*
* @license GPL-3.0+ <http://spdx.org/licenses/GPL-3.0+>
*/
#ifndef AFFINEMATRIXCOLPEBOX_H__
#define AFFINEMATRIXCOLPEBOX_H__
#define AFFINE_MATRIX_COL_PE_BOX4_N 840
const ALIGNED_TYPE_(uint8_t, 16) AffineMatrixColPEBox4[AFFINE_MATRIX_COL_PE_BOX4_N][16] =
{
{0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15},
{0, 9, 8, 1, 4, 13, 12, 5, 2, 11, 10, 3, 6, 15, 14, 7},
{0, 10, 8, 2, 4, 14, 12, 6, 1, 11, 9, 3, 5, 15, 13, 7},
{0, 12, 8, 4, 2, 14, 10, 6, 1, 13, 9, 5, 3, 15, 11, 7},
{0, 8, 5, 13, 4, 12, 1, 9, 2, 10, 7, 15, 6, 14, 3, 11},
{0, 8, 6, 14, 4, 12, 2, 10, 1, 9, 7, 15, 5, 13, 3, 11},
{0, 12, 4, 8, 2, 14, 6, 10, 1, 13, 5, 9, 3, 15, 7, 11},
{0, 8, 4, 12, 3, 11, 7, 15, 2, 10, 6, 14, 1, 9, 5, 13},
{0, 8, 6, 14, 2, 10, 4, 12, 1, 9, 7, 15, 3, 11, 5, 13},
{0, 10, 4, 14, 2, 8, 6, 12, 1, 11, 5, 15, 3, 9, 7, 13},
{0, 8, 4, 12, 3, 11, 7, 15, 1, 9, 5, 13, 2, 10, 6, 14},
{0, 8, 5, 13, 2, 10, 7, 15, 1, 9, 4, 12, 3, 11, 6, 14},
{0, 9, 4, 13, 2, 11, 6, 15, 1, 8, 5, 12, 3, 10, 7, 14},
{0, 10, 9, 3, 8, 2, 1, 11, 4, 14, 13, 7, 12, 6, 5, 15},
{0, 12, 9, 5, 8, 4, 1, 13, 2, 14, 11, 7, 10, 6, 3, 15},
{0, 12, 10, 6, 8, 4, 2, 14, 1, 13, 11, 7, 9, 5, 3, 15},
{0, 9, 8, 1, 6, 15, 14, 7, 4, 13, 12, 5, 2, 11, 10, 3},
{0, 10, 8, 2, 5, 15, 13, 7, 4, 14, 12, 6, 1, 11, 9, 3},
{0, 12, 8, 4, 5, 9, 13, 1, 2, 14, 10, 6, 7, 11, 15, 3},
{0, 12, 9, 5, 4, 8, 13, 1, 2, 14, 11, 7, 6, 10, 15, 3},
{0, 13, 8, 5, 4, 9, 12, 1, 2, 15, 10, 7, 6, 11, 14, 3},
{0, 12, 8, 4, 6, 10, 14, 2, 1, 13, 9, 5, 7, 11, 15, 3},
{0, 12, 10, 6, 4, 8, 14, 2, 1, 13, 11, 7, 5, 9, 15, 3},
{0, 14, 8, 6, 4, 10, 12, 2, 1, 15, 9, 7, 5, 11, 13, 3},
{0, 9, 8, 1, 6, 15, 14, 7, 2, 11, 10, 3, 4, 13, 12, 5},
{0, 10, 8, 2, 4, 14, 12, 6, 3, 9, 11, 1, 7, 13, 15, 5},
{0, 10, 9, 3, 4, 14, 13, 7, 2, 8, 11, 1, 6, 12, 15, 5},
{0, 11, 8, 3, 4, 15, 12, 7, 2, 9, 10, 1, 6, 13, 14, 5},
{0, 9, 8, 1, 4, 13, 12, 5, 3, 10, 11, 2, 7, 14, 15, 6},
{0, 9, 8, 1, 5, 12, 13, 4, 2, 11, 10, 3, 7, 14, 15, 6},
{0, 10, 8, 2, 6, 12, 14, 4, 1, 11, 9, 3, 7, 13, 15, 5},
{0, 10, 8, 2, 5, 15, 13, 7, 1, 11, 9, 3, 4, 14, 12, 6},
{0, 10, 9, 3, 4, 14, 13, 7, 1, 11, 8, 2, 5, 15, 12, 6},
{0, 11, 8, 3, 4, 15, 12, 7, 1, 10, 9, 2, 5, 14, 13, 6},
{0, 12, 8, 4, 3, 15, 11, 7, 2, 14, 10, 6, 1, 13, 9, 5},
{0, 12, 10, 6, 2, 14, 8, 4, 1, 13, 11, 7, 3, 15, 9, 5},
{0, 14, 8, 6, 2, 12, 10, 4, 1, 15, 9, 7, 3, 13, 11, 5},
{0, 12, 8, 4, 3, 15, 11, 7, 1, 13, 9, 5, 2, 14, 10, 6},
{0, 12, 9, 5, 2, 14, 11, 7, 1, 13, 8, 4, 3, 15, 10, 6},
{0, 13, 8, 5, 2, 15, 10, 7, 1, 12, 9, 4, 3, 14, 11, 6},
{0, 8, 6, 14, 5, 13, 3, 11, 4, 12, 2, 10, 1, 9, 7, 15},
{0, 12, 5, 9, 4, 8, 1, 13, 2, 14, 7, 11, 6, 10, 3, 15},
{0, 12, 6, 10, 4, 8, 2, 14, 1, 13, 7, 11, 5, 9, 3, 15},
{0, 8, 6, 14, 4, 12, 2, 10, 3, 11, 5, 13, 7, 15, 1, 9},
{0, 8, 6, 14, 5, 13, 3, 11, 2, 10, 4, 12, 7, 15, 1, 9},
{0, 8, 7, 15, 4, 12, 3, 11, 2, 10, 5, 13, 6, 14, 1, 9},
{0, 10, 5, 15, 4, 14, 1, 11, 2, 8, 7, 13, 6, 12, 3, 9},
{0, 8, 5, 13, 4, 12, 1, 9, 3, 11, 6, 14, 7, 15, 2, 10},
{0, 9, 5, 12, 4, 13, 1, 8, 2, 11, 7, 14, 6, 15, 3, 10},
{0, 10, 6, 12, 4, 14, 2, 8, 1, 11, 7, 13, 5, 15, 3, 9},
{0, 8, 6, 14, 5, 13, 3, 11, 1, 9, 7, 15, 4, 12, 2, 10},
{0, 8, 7, 15, 4, 12, 3, 11, 1, 9, 6, 14, 5, 13, 2, 10},
{0, 9, 6, 15, 4, 13, 2, 11, 1, 8, 7, 14, 5, 12, 3, 10},
{0, 12, 4, 8, 3, 15, 7, 11, 2, 14, 6, 10, 1, 13, 5, 9},
{0, 12, 6, 10, 2, 14, 4, 8, 1, 13, 7, 11, 3, 15, 5, 9},
{0, 14, 4, 10, 2, 12, 6, 8, 1, 15, 5, 11, 3, 13, 7, 9},
{0, 12, 4, 8, 3, 15, 7, 11, 1, 13, 5, 9, 2, 14, 6, 10},
{0, 12, 5, 9, 2, 14, 7, 11, 1, 13, 4, 8, 3, 15, 6, 10},
{0, 13, 4, 9, 2, 15, 6, 11, 1, 12, 5, 8, 3, 14, 7, 10},
{0, 8, 6, 14, 3, 11, 5, 13, 2, 10, 4, 12, 1, 9, 7, 15},
{0, 10, 4, 14, 3, 9, 7, 13, 2, 8, 6, 12, 1, 11, 5, 15},
{0, 8, 5, 13, 3, 11, 6, 14, 2, 10, 7, 15, 1, 9, 4, 12},
{0, 9, 4, 13, 3, 10, 7, 14, 2, 11, 6, 15, 1, 8, 5, 12},
{0, 10, 6, 12, 2, 8, 4, 14, 1, 11, 7, 13, 3, 9, 5, 15},
{0, 8, 6, 14, 3, 11, 5, 13, 1, 9, 7, 15, 2, 10, 4, 12},
{0, 8, 7, 15, 2, 10, 5, 13, 1, 9, 6, 14, 3, 11, 4, 12},
{0, 9, 6, 15, 2, 11, 4, 13, 1, 8, 7, 14, 3, 10, 5, 12},
{0, 10, 4, 14, 3, 9, 7, 13, 1, 11, 5, 15, 2, 8, 6, 12},
{0, 10, 5, 15, 2, 8, 7, 13, 1, 11, 4, 14, 3, 9, 6, 12},
{0, 11, 4, 15, 2, 9, 6, 13, 1, 10, 5, 14, 3, 8, 7, 12},
{0, 8, 5, 13, 3, 11, 6, 14, 1, 9, 4, 12, 2, 10, 7, 15},
{0, 9, 4, 13, 3, 10, 7, 14, 1, 8, 5, 12, 2, 11, 6, 15},
{0, 9, 5, 12, 2, 11, 7, 14, 1, 8, 4, 13, 3, 10, 6, 15},
{0, 12, 10, 6, 9, 5, 3, 15, 8, 4, 2, 14, 1, 13, 11, 7},
{0, 12, 9, 5, 8, 4, 1, 13, 6, 10, 15, 3, 14, 2, 7, 11},
{0, 12, 10, 6, 8, 4, 2, 14, 5, 9, 15, 3, 13, 1, 7, 11},
{0, 12, 10, 6, 9, 5, 3, 15, 4, 8, 14, 2, 13, 1, 7, 11},
{0, 13, 10, 7, 8, 5, 2, 15, 4, 9, 14, 3, 12, 1, 6, 11},
{0, 14, 9, 7, 8, 6, 1, 15, 4, 10, 13, 3, 12, 2, 5, 11},
{0, 10, 9, 3, 8, 2, 1, 11, 6, 12, 15, 5, 14, 4, 7, 13},
{0, 11, 10, 1, 8, 3, 2, 9, 4, 15, 14, 5, 12, 7, 6, 13},
{0, 10, 9, 3, 8, 2, 1, 11, 5, 15, 12, 6, 13, 7, 4, 14},
{0, 11, 9, 2, 8, 3, 1, 10, 4, 15, 13, 6, 12, 7, 5, 14},
{0, 13, 12, 1, 8, 5, 4, 9, 2, 15, 14, 3, 10, 7, 6, 11},
{0, 14, 12, 2, 8, 6, 4, 10, 1, 15, 13, 3, 9, 7, 5, 11},
{0, 12, 10, 6, 8, 4, 2, 14, 3, 15, 9, 5, 11, 7, 1, 13},
{0, 12, 10, 6, 9, 5, 3, 15, 2, 14, 8, 4, 11, 7, 1, 13},
{0, 12, 11, 7, 8, 4, 3, 15, 2, 14, 9, 5, 10, 6, 1, 13},
{0, 14, 9, 7, 8, 6, 1, 15, 2, 12, 11, 5, 10, 4, 3, 13},
{0, 12, 9, 5, 8, 4, 1, 13, 3, 15, 10, 6, 11, 7, 2, 14},
{0, 13, 9, 4, 8, 5, 1, 12, 2, 15, 11, 6, 10, 7, 3, 14},
{0, 14, 10, 4, 8, 6, 2, 12, 1, 15, 11, 5, 9, 7, 3, 13},
{0, 12, 10, 6, 9, 5, 3, 15, 1, 13, 11, 7, 8, 4, 2, 14},
{0, 12, 11, 7, 8, 4, 3, 15, 1, 13, 10, 6, 9, 5, 2, 14},
{0, 13, 10, 7, 8, 5, 2, 15, 1, 12, 11, 6, 9, 4, 3, 14},
{0, 12, 8, 4, 6, 10, 14, 2, 5, 9, 13, 1, 3, 15, 11, 7},
{0, 12, 9, 5, 6, 10, 15, 3, 4, 8, 13, 1, 2, 14, 11, 7},
{0, 13, 8, 5, 6, 11, 14, 3, 4, 9, 12, 1, 2, 15, 10, 7},
{0, 12, 10, 6, 5, 9, 15, 3, 4, 8, 14, 2, 1, 13, 11, 7},
{0, 14, 8, 6, 5, 11, 13, 3, 4, 10, 12, 2, 1, 15, 9, 7},
{0, 10, 8, 2, 6, 12, 14, 4, 5, 15, 13, 7, 3, 9, 11, 1},
{0, 10, 8, 2, 7, 13, 15, 5, 4, 14, 12, 6, 3, 9, 11, 1},
{0, 10, 9, 3, 6, 12, 15, 5, 4, 14, 13, 7, 2, 8, 11, 1},
{0, 11, 8, 3, 6, 13, 14, 5, 4, 15, 12, 7, 2, 9, 10, 1},
{0, 9, 8, 1, 6, 15, 14, 7, 5, 12, 13, 4, 3, 10, 11, 2},
{0, 9, 8, 1, 7, 14, 15, 6, 4, 13, 12, 5, 3, 10, 11, 2},
{0, 10, 9, 3, 5, 15, 12, 6, 4, 14, 13, 7, 1, 11, 8, 2},
{0, 11, 8, 3, 5, 14, 13, 6, 4, 15, 12, 7, 1, 10, 9, 2},
{0, 13, 12, 1, 4, 9, 8, 5, 2, 15, 14, 3, 6, 11, 10, 7},
{0, 14, 12, 2, 4, 10, 8, 6, 1, 15, 13, 3, 5, 11, 9, 7},
{0, 12, 8, 4, 6, 10, 14, 2, 3, 15, 11, 7, 5, 9, 13, 1},
{0, 12, 8, 4, 7, 11, 15, 3, 2, 14, 10, 6, 5, 9, 13, 1},
{0, 12, 9, 5, 6, 10, 15, 3, 2, 14, 11, 7, 4, 8, 13, 1},
{0, 13, 8, 5, 6, 11, 14, 3, 2, 15, 10, 7, 4, 9, 12, 1},
{0, 12, 10, 6, 4, 8, 14, 2, 3, 15, 9, 5, 7, 11, 13, 1},
{0, 12, 10, 6, 5, 9, 15, 3, 2, 14, 8, 4, 7, 11, 13, 1},
{0, 12, 11, 7, 4, 8, 15, 3, 2, 14, 9, 5, 6, 10, 13, 1},
{0, 13, 10, 7, 4, 9, 14, 3, 2, 15, 8, 5, 6, 11, 12, 1},
{0, 14, 8, 6, 4, 10, 12, 2, 3, 13, 11, 5, 7, 9, 15, 1},
{0, 14, 8, 6, 5, 11, 13, 3, 2, 12, 10, 4, 7, 9, 15, 1},
{0, 14, 9, 7, 4, 10, 13, 3, 2, 12, 11, 5, 6, 8, 15, 1},
{0, 15, 8, 7, 4, 11, 12, 3, 2, 13, 10, 5, 6, 9, 14, 1},
{0, 12, 8, 4, 5, 9, 13, 1, 3, 15, 11, 7, 6, 10, 14, 2},
{0, 12, 9, 5, 4, 8, 13, 1, 3, 15, 10, 6, 7, 11, 14, 2},
{0, 13, 8, 5, 4, 9, 12, 1, 3, 14, 11, 6, 7, 10, 15, 2},
{0, 12, 8, 4, 7, 11, 15, 3, 1, 13, 9, 5, 6, 10, 14, 2},
{0, 12, 9, 5, 6, 10, 15, 3, 1, 13, 8, 4, 7, 11, 14, 2},
{0, 13, 8, 5, 6, 11, 14, 3, 1, 12, 9, 4, 7, 10, 15, 2},
{0, 12, 10, 6, 5, 9, 15, 3, 1, 13, 11, 7, 4, 8, 14, 2},
{0, 12, 11, 7, 4, 8, 15, 3, 1, 13, 10, 6, 5, 9, 14, 2},
{0, 13, 10, 7, 4, 9, 14, 3, 1, 12, 11, 6, 5, 8, 15, 2},
{0, 14, 8, 6, 5, 11, 13, 3, 1, 15, 9, 7, 4, 10, 12, 2},
{0, 14, 9, 7, 4, 10, 13, 3, 1, 15, 8, 6, 5, 11, 12, 2},
{0, 15, 8, 7, 4, 11, 12, 3, 1, 14, 9, 6, 5, 10, 13, 2},
{0, 10, 8, 2, 6, 12, 14, 4, 3, 9, 11, 1, 5, 15, 13, 7},
{0, 10, 9, 3, 6, 12, 15, 5, 2, 8, 11, 1, 4, 14, 13, 7},
{0, 11, 8, 3, 6, 13, 14, 5, 2, 9, 10, 1, 4, 15, 12, 7},
{0, 9, 8, 1, 6, 15, 14, 7, 3, 10, 11, 2, 5, 12, 13, 4},
{0, 9, 8, 1, 7, 14, 15, 6, 2, 11, 10, 3, 5, 12, 13, 4},
{0, 11, 10, 1, 4, 15, 14, 5, 2, 9, 8, 3, 6, 13, 12, 7},
{0, 10, 8, 2, 5, 15, 13, 7, 3, 9, 11, 1, 6, 12, 14, 4},
{0, 10, 9, 3, 5, 15, 12, 6, 2, 8, 11, 1, 7, 13, 14, 4},
{0, 11, 8, 3, 5, 14, 13, 6, 2, 9, 10, 1, 7, 12, 15, 4},
{0, 9, 8, 1, 5, 12, 13, 4, 3, 10, 11, 2, 6, 15, 14, 7},
{0, 10, 8, 2, 7, 13, 15, 5, 1, 11, 9, 3, 6, 12, 14, 4},
{0, 10, 9, 3, 6, 12, 15, 5, 1, 11, 8, 2, 7, 13, 14, 4},
{0, 11, 8, 3, 6, 13, 14, 5, 1, 10, 9, 2, 7, 12, 15, 4},
{0, 10, 9, 3, 5, 15, 12, 6, 1, 11, 8, 2, 4, 14, 13, 7},
{0, 11, 8, 3, 5, 14, 13, 6, 1, 10, 9, 2, 4, 15, 12, 7},
{0, 11, 9, 2, 4, 15, 13, 6, 1, 10, 8, 3, 5, 14, 12, 7},
{0, 12, 10, 6, 3, 15, 9, 5, 2, 14, 8, 4, 1, 13, 11, 7},
{0, 14, 8, 6, 3, 13, 11, 5, 2, 12, 10, 4, 1, 15, 9, 7},
{0, 12, 9, 5, 3, 15, 10, 6, 2, 14, 11, 7, 1, 13, 8, 4},
{0, 13, 8, 5, 3, 14, 11, 6, 2, 15, 10, 7, 1, 12, 9, 4},
{0, 14, 10, 4, 2, 12, 8, 6, 1, 15, 11, 5, 3, 13, 9, 7},
{0, 12, 10, 6, 3, 15, 9, 5, 1, 13, 11, 7, 2, 14, 8, 4},
{0, 12, 11, 7, 2, 14, 9, 5, 1, 13, 10, 6, 3, 15, 8, 4},
{0, 13, 10, 7, 2, 15, 8, 5, 1, 12, 11, 6, 3, 14, 9, 4},
{0, 14, 8, 6, 3, 13, 11, 5, 1, 15, 9, 7, 2, 12, 10, 4},
{0, 14, 9, 7, 2, 12, 11, 5, 1, 15, 8, 6, 3, 13, 10, 4},
{0, 15, 8, 7, 2, 13, 10, 5, 1, 14, 9, 6, 3, 12, 11, 4},
{0, 12, 9, 5, 3, 15, 10, 6, 1, 13, 8, 4, 2, 14, 11, 7},
{0, 13, 8, 5, 3, 14, 11, 6, 1, 12, 9, 4, 2, 15, 10, 7},
{0, 13, 9, 4, 2, 15, 11, 6, 1, 12, 8, 5, 3, 14, 10, 7},
{0, 12, 6, 10, 5, 9, 3, 15, 4, 8, 2, 14, 1, 13, 7, 11},
{0, 8, 7, 15, 6, 14, 1, 9, 4, 12, 3, 11, 2, 10, 5, 13},
{0, 10, 6, 12, 5, 15, 3, 9, 4, 14, 2, 8, 1, 11, 7, 13},
{0, 8, 7, 15, 5, 13, 2, 10, 4, 12, 3, 11, 1, 9, 6, 14},
{0, 9, 6, 15, 5, 12, 3, 10, 4, 13, 2, 11, 1, 8, 7, 14},
{0, 12, 6, 10, 4, 8, 2, 14, 3, 15, 5, 9, 7, 11, 1, 13},
{0, 12, 6, 10, 5, 9, 3, 15, 2, 14, 4, 8, 7, 11, 1, 13},
{0, 12, 7, 11, 4, 8, 3, 15, 2, 14, 5, 9, 6, 10, 1, 13},
{0, 14, 5, 11, 4, 10, 1, 15, 2, 12, 7, 9, 6, 8, 3, 13},
{0, 12, 5, 9, 4, 8, 1, 13, 3, 15, 6, 10, 7, 11, 2, 14},
{0, 13, 5, 8, 4, 9, 1, 12, 2, 15, 7, 10, 6, 11, 3, 14},
{0, 14, 6, 8, 4, 10, 2, 12, 1, 15, 7, 9, 5, 11, 3, 13},
{0, 12, 6, 10, 5, 9, 3, 15, 1, 13, 7, 11, 4, 8, 2, 14},
{0, 12, 7, 11, 4, 8, 3, 15, 1, 13, 6, 10, 5, 9, 2, 14},
{0, 13, 6, 11, 4, 9, 2, 15, 1, 12, 7, 10, 5, 8, 3, 14},
{0, 8, 7, 15, 6, 14, 1, 9, 2, 10, 5, 13, 4, 12, 3, 11},
{0, 10, 6, 12, 4, 14, 2, 8, 3, 9, 5, 15, 7, 13, 1, 11},
{0, 10, 6, 12, 5, 15, 3, 9, 2, 8, 4, 14, 7, 13, 1, 11},
{0, 10, 7, 13, 4, 14, 3, 9, 2, 8, 5, 15, 6, 12, 1, 11},
{0, 9, 6, 15, 4, 13, 2, 11, 3, 10, 5, 12, 7, 14, 1, 8},
{0, 9, 6, 15, 5, 12, 3, 10, 2, 11, 4, 13, 7, 14, 1, 8},
{0, 9, 7, 14, 4, 13, 3, 10, 2, 11, 5, 12, 6, 15, 1, 8},
{0, 10, 5, 15, 4, 14, 1, 11, 3, 9, 6, 12, 7, 13, 2, 8},
{0, 11, 5, 14, 4, 15, 1, 10, 2, 9, 7, 12, 6, 13, 3, 8},
{0, 9, 5, 12, 4, 13, 1, 8, 3, 10, 6, 15, 7, 14, 2, 11},
{0, 10, 6, 12, 5, 15, 3, 9, 1, 11, 7, 13, 4, 14, 2, 8},
{0, 10, 7, 13, 4, 14, 3, 9, 1, 11, 6, 12, 5, 15, 2, 8},
{0, 11, 6, 13, 4, 15, 2, 9, 1, 10, 7, 12, 5, 14, 3, 8},
{0, 8, 7, 15, 5, 13, 2, 10, 1, 9, 6, 14, 4, 12, 3, 11},
{0, 9, 6, 15, 5, 12, 3, 10, 1, 8, 7, 14, 4, 13, 2, 11},
{0, 9, 7, 14, 4, 13, 3, 10, 1, 8, 6, 15, 5, 12, 2, 11},
{0, 12, 6, 10, 3, 15, 5, 9, 2, 14, 4, 8, 1, 13, 7, 11},
{0, 14, 4, 10, 3, 13, 7, 9, 2, 12, 6, 8, 1, 15, 5, 11},
{0, 12, 5, 9, 3, 15, 6, 10, 2, 14, 7, 11, 1, 13, 4, 8},
{0, 13, 4, 9, 3, 14, 7, 10, 2, 15, 6, 11, 1, 12, 5, 8},
{0, 14, 6, 8, 2, 12, 4, 10, 1, 15, 7, 9, 3, 13, 5, 11},
{0, 12, 6, 10, 3, 15, 5, 9, 1, 13, 7, 11, 2, 14, 4, 8},
{0, 12, 7, 11, 2, 14, 5, 9, 1, 13, 6, 10, 3, 15, 4, 8},
{0, 13, 6, 11, 2, 15, 4, 9, 1, 12, 7, 10, 3, 14, 5, 8},
{0, 14, 4, 10, 3, 13, 7, 9, 1, 15, 5, 11, 2, 12, 6, 8},
{0, 14, 5, 11, 2, 12, 7, 9, 1, 15, 4, 10, 3, 13, 6, 8},
{0, 15, 4, 11, 2, 13, 6, 9, 1, 14, 5, 10, 3, 12, 7, 8},
{0, 12, 5, 9, 3, 15, 6, 10, 1, 13, 4, 8, 2, 14, 7, 11},
{0, 13, 4, 9, 3, 14, 7, 10, 1, 12, 5, 8, 2, 15, 6, 11},
{0, 13, 5, 8, 2, 15, 7, 10, 1, 12, 4, 9, 3, 14, 6, 11},
{0, 10, 6, 12, 3, 9, 5, 15, 2, 8, 4, 14, 1, 11, 7, 13},
{0, 8, 7, 15, 3, 11, 4, 12, 2, 10, 5, 13, 1, 9, 6, 14},
{0, 9, 6, 15, 3, 10, 5, 12, 2, 11, 4, 13, 1, 8, 7, 14},
{0, 10, 5, 15, 3, 9, 6, 12, 2, 8, 7, 13, 1, 11, 4, 14},
{0, 11, 4, 15, 3, 8, 7, 12, 2, 9, 6, 13, 1, 10, 5, 14},
{0, 9, 5, 12, 3, 10, 6, 15, 2, 11, 7, 14, 1, 8, 4, 13},
{0, 10, 6, 12, 3, 9, 5, 15, 1, 11, 7, 13, 2, 8, 4, 14},
{0, 10, 7, 13, 2, 8, 5, 15, 1, 11, 6, 12, 3, 9, 4, 14},
{0, 11, 6, 13, 2, 9, 4, 15, 1, 10, 7, 12, 3, 8, 5, 14},
{0, 8, 7, 15, 3, 11, 4, 12, 1, 9, 6, 14, 2, 10, 5, 13},
{0, 9, 6, 15, 3, 10, 5, 12, 1, 8, 7, 14, 2, 11, 4, 13},
{0, 9, 7, 14, 2, 11, 5, 12, 1, 8, 6, 15, 3, 10, 4, 13},
{0, 10, 5, 15, 3, 9, 6, 12, 1, 11, 4, 14, 2, 8, 7, 13},
{0, 11, 4, 15, 3, 8, 7, 12, 1, 10, 5, 14, 2, 9, 6, 13},
{0, 11, 5, 14, 2, 9, 7, 12, 1, 10, 4, 15, 3, 8, 6, 13},
{0, 9, 5, 12, 3, 10, 6, 15, 1, 8, 4, 13, 2, 11, 7, 14},
{0, 13, 12, 1, 10, 7, 6, 11, 8, 5, 4, 9, 2, 15, 14, 3},
{0, 14, 12, 2, 9, 7, 5, 11, 8, 6, 4, 10, 1, 15, 13, 3},
{0, 12, 11, 7, 10, 6, 1, 13, 8, 4, 3, 15, 2, 14, 9, 5},
{0, 14, 10, 4, 9, 7, 3, 13, 8, 6, 2, 12, 1, 15, 11, 5},
{0, 12, 11, 7, 9, 5, 2, 14, 8, 4, 3, 15, 1, 13, 10, 6},
{0, 13, 10, 7, 9, 4, 3, 14, 8, 5, 2, 15, 1, 12, 11, 6},
{0, 13, 12, 1, 8, 5, 4, 9, 6, 11, 10, 7, 14, 3, 2, 15},
{0, 13, 12, 1, 10, 7, 6, 11, 4, 9, 8, 5, 14, 3, 2, 15},
{0, 14, 12, 2, 8, 6, 4, 10, 5, 11, 9, 7, 13, 3, 1, 15},
{0, 14, 12, 2, 9, 7, 5, 11, 4, 10, 8, 6, 13, 3, 1, 15},
{0, 14, 13, 3, 8, 6, 5, 11, 4, 10, 9, 7, 12, 2, 1, 15},
{0, 12, 10, 6, 8, 4, 2, 14, 7, 11, 13, 1, 15, 3, 5, 9},
{0, 12, 11, 7, 8, 4, 3, 15, 6, 10, 13, 1, 14, 2, 5, 9},
{0, 13, 10, 7, 8, 5, 2, 15, 6, 11, 12, 1, 14, 3, 4, 9},
{0, 12, 9, 5, 8, 4, 1, 13, 7, 11, 14, 2, 15, 3, 6, 10},
{0, 13, 9, 4, 8, 5, 1, 12, 6, 11, 15, 2, 14, 3, 7, 10},
{0, 12, 11, 7, 10, 6, 1, 13, 4, 8, 15, 3, 14, 2, 5, 9},
{0, 14, 10, 4, 8, 6, 2, 12, 5, 11, 15, 1, 13, 3, 7, 9},
{0, 14, 11, 5, 8, 6, 3, 13, 4, 10, 15, 1, 12, 2, 7, 9},
{0, 15, 10, 5, 8, 7, 2, 13, 4, 11, 14, 1, 12, 3, 6, 9},
{0, 12, 11, 7, 8, 4, 3, 15, 5, 9, 14, 2, 13, 1, 6, 10},
{0, 12, 11, 7, 9, 5, 2, 14, 4, 8, 15, 3, 13, 1, 6, 10},
{0, 13, 11, 6, 8, 5, 3, 14, 4, 9, 15, 2, 12, 1, 7, 10},
{0, 14, 9, 7, 8, 6, 1, 15, 5, 11, 12, 2, 13, 3, 4, 10},
{0, 15, 9, 6, 8, 7, 1, 14, 4, 11, 13, 2, 12, 3, 5, 10},
{0, 11, 10, 1, 8, 3, 2, 9, 6, 13, 12, 7, 14, 5, 4, 15},
{0, 10, 9, 3, 8, 2, 1, 11, 7, 13, 14, 4, 15, 5, 6, 12},
{0, 11, 9, 2, 8, 3, 1, 10, 6, 13, 15, 4, 14, 5, 7, 12},
{0, 11, 10, 1, 8, 3, 2, 9, 5, 14, 15, 4, 13, 6, 7, 12},
{0, 11, 10, 1, 9, 2, 3, 8, 4, 15, 14, 5, 13, 6, 7, 12},
{0, 11, 9, 2, 8, 3, 1, 10, 5, 14, 12, 7, 13, 6, 4, 15},
{0, 13, 12, 1, 10, 7, 6, 11, 2, 15, 14, 3, 8, 5, 4, 9},
{0, 14, 12, 2, 8, 6, 4, 10, 3, 13, 15, 1, 11, 5, 7, 9},
{0, 14, 13, 3, 8, 6, 5, 11, 2, 12, 15, 1, 10, 4, 7, 9},
{0, 15, 12, 3, 8, 7, 4, 11, 2, 13, 14, 1, 10, 5, 6, 9},
{0, 13, 12, 1, 8, 5, 4, 9, 3, 14, 15, 2, 11, 6, 7, 10},
{0, 13, 12, 1, 9, 4, 5, 8, 2, 15, 14, 3, 11, 6, 7, 10},
{0, 14, 12, 2, 10, 4, 6, 8, 1, 15, 13, 3, 11, 5, 7, 9},
{0, 14, 12, 2, 9, 7, 5, 11, 1, 15, 13, 3, 8, 6, 4, 10},
{0, 14, 13, 3, 8, 6, 5, 11, 1, 15, 12, 2, 9, 7, 4, 10},
{0, 15, 12, 3, 8, 7, 4, 11, 1, 14, 13, 2, 9, 6, 5, 10},
{0, 12, 11, 7, 10, 6, 1, 13, 2, 14, 9, 5, 8, 4, 3, 15},
{0, 14, 10, 4, 8, 6, 2, 12, 3, 13, 9, 7, 11, 5, 1, 15},
{0, 14, 10, 4, 9, 7, 3, 13, 2, 12, 8, 6, 11, 5, 1, 15},
{0, 14, 11, 5, 8, 6, 3, 13, 2, 12, 9, 7, 10, 4, 1, 15},
{0, 13, 10, 7, 8, 5, 2, 15, 3, 14, 9, 4, 11, 6, 1, 12},
{0, 13, 10, 7, 9, 4, 3, 14, 2, 15, 8, 5, 11, 6, 1, 12},
{0, 13, 11, 6, 8, 5, 3, 14, 2, 15, 9, 4, 10, 7, 1, 12},
{0, 14, 9, 7, 8, 6, 1, 15, 3, 13, 10, 4, 11, 5, 2, 12},
{0, 15, 9, 6, 8, 7, 1, 14, 2, 13, 11, 4, 10, 5, 3, 12},
{0, 13, 9, 4, 8, 5, 1, 12, 3, 14, 10, 7, 11, 6, 2, 15},
{0, 14, 10, 4, 9, 7, 3, 13, 1, 15, 11, 5, 8, 6, 2, 12},
{0, 14, 11, 5, 8, 6, 3, 13, 1, 15, 10, 4, 9, 7, 2, 12},
{0, 15, 10, 5, 8, 7, 2, 13, 1, 14, 11, 4, 9, 6, 3, 12},
{0, 12, 11, 7, 9, 5, 2, 14, 1, 13, 10, 6, 8, 4, 3, 15},
{0, 13, 10, 7, 9, 4, 3, 14, 1, 12, 11, 6, 8, 5, 2, 15},
{0, 13, 11, 6, 8, 5, 3, 14, 1, 12, 10, 7, 9, 4, 2, 15},
{0, 13, 12, 1, 6, 11, 10, 7, 4, 9, 8, 5, 2, 15, 14, 3},
{0, 14, 12, 2, 5, 11, 9, 7, 4, 10, 8, 6, 1, 15, 13, 3},
{0, 12, 8, 4, 7, 11, 15, 3, 6, 10, 14, 2, 1, 13, 9, 5},
{0, 12, 10, 6, 7, 11, 13, 1, 4, 8, 14, 2, 3, 15, 9, 5},
{0, 12, 11, 7, 6, 10, 13, 1, 4, 8, 15, 3, 2, 14, 9, 5},
{0, 13, 10, 7, 6, 11, 12, 1, 4, 9, 14, 3, 2, 15, 8, 5},
{0, 14, 8, 6, 7, 9, 15, 1, 4, 10, 12, 2, 3, 13, 11, 5},
{0, 14, 9, 7, 6, 8, 15, 1, 4, 10, 13, 3, 2, 12, 11, 5},
{0, 15, 8, 7, 6, 9, 14, 1, 4, 11, 12, 3, 2, 13, 10, 5},
{0, 12, 8, 4, 7, 11, 15, 3, 5, 9, 13, 1, 2, 14, 10, 6},
{0, 12, 9, 5, 7, 11, 14, 2, 4, 8, 13, 1, 3, 15, 10, 6},
{0, 13, 8, 5, 7, 10, 15, 2, 4, 9, 12, 1, 3, 14, 11, 6},
{0, 12, 11, 7, 5, 9, 14, 2, 4, 8, 15, 3, 1, 13, 10, 6},
{0, 13, 10, 7, 5, 8, 15, 2, 4, 9, 14, 3, 1, 12, 11, 6},
{0, 14, 9, 7, 5, 11, 12, 2, 4, 10, 13, 3, 1, 15, 8, 6},
{0, 15, 8, 7, 5, 10, 13, 2, 4, 11, 12, 3, 1, 14, 9, 6},
{0, 10, 8, 2, 7, 13, 15, 5, 6, 12, 14, 4, 1, 11, 9, 3},
{0, 11, 10, 1, 6, 13, 12, 7, 4, 15, 14, 5, 2, 9, 8, 3},
{0, 9, 8, 1, 7, 14, 15, 6, 5, 12, 13, 4, 2, 11, 10, 3},
{0, 11, 9, 2, 5, 14, 12, 7, 4, 15, 13, 6, 1, 10, 8, 3},
{0, 13, 12, 1, 6, 11, 10, 7, 2, 15, 14, 3, 4, 9, 8, 5},
{0, 14, 12, 2, 4, 10, 8, 6, 3, 13, 15, 1, 7, 9, 11, 5},
{0, 14, 13, 3, 4, 10, 9, 7, 2, 12, 15, 1, 6, 8, 11, 5},
{0, 15, 12, 3, 4, 11, 8, 7, 2, 13, 14, 1, 6, 9, 10, 5},
{0, 13, 12, 1, 4, 9, 8, 5, 3, 14, 15, 2, 7, 10, 11, 6},
{0, 13, 12, 1, 5, 8, 9, 4, 2, 15, 14, 3, 7, 10, 11, 6},
{0, 14, 12, 2, 6, 8, 10, 4, 1, 15, 13, 3, 7, 9, 11, 5},
{0, 14, 12, 2, 5, 11, 9, 7, 1, 15, 13, 3, 4, 10, 8, 6},
{0, 14, 13, 3, 4, 10, 9, 7, 1, 15, 12, 2, 5, 11, 8, 6},
{0, 15, 12, 3, 4, 11, 8, 7, 1, 14, 13, 2, 5, 10, 9, 6},
{0, 12, 10, 6, 7, 11, 13, 1, 2, 14, 8, 4, 5, 9, 15, 3},
{0, 12, 11, 7, 6, 10, 13, 1, 2, 14, 9, 5, 4, 8, 15, 3},
{0, 13, 10, 7, 6, 11, 12, 1, 2, 15, 8, 5, 4, 9, 14, 3},
{0, 14, 8, 6, 7, 9, 15, 1, 2, 12, 10, 4, 5, 11, 13, 3},
{0, 14, 9, 7, 6, 8, 15, 1, 2, 12, 11, 5, 4, 10, 13, 3},
{0, 15, 8, 7, 6, 9, 14, 1, 2, 13, 10, 5, 4, 11, 12, 3},
{0, 14, 10, 4, 5, 11, 15, 1, 2, 12, 8, 6, 7, 9, 13, 3},
{0, 14, 11, 5, 4, 10, 15, 1, 2, 12, 9, 7, 6, 8, 13, 3},
{0, 15, 10, 5, 4, 11, 14, 1, 2, 13, 8, 7, 6, 9, 12, 3},
{0, 13, 9, 4, 5, 8, 12, 1, 2, 15, 11, 6, 7, 10, 14, 3},
{0, 14, 10, 4, 6, 8, 12, 2, 1, 15, 11, 5, 7, 9, 13, 3},
{0, 12, 9, 5, 7, 11, 14, 2, 1, 13, 8, 4, 6, 10, 15, 3},
{0, 13, 8, 5, 7, 10, 15, 2, 1, 12, 9, 4, 6, 11, 14, 3},
{0, 13, 9, 4, 6, 11, 15, 2, 1, 12, 8, 5, 7, 10, 14, 3},
{0, 12, 11, 7, 5, 9, 14, 2, 1, 13, 10, 6, 4, 8, 15, 3},
{0, 13, 10, 7, 5, 8, 15, 2, 1, 12, 11, 6, 4, 9, 14, 3},
{0, 13, 11, 6, 4, 9, 15, 2, 1, 12, 10, 7, 5, 8, 14, 3},
{0, 14, 9, 7, 5, 11, 12, 2, 1, 15, 8, 6, 4, 10, 13, 3},
{0, 15, 8, 7, 5, 10, 13, 2, 1, 14, 9, 6, 4, 11, 12, 3},
{0, 15, 9, 6, 4, 11, 13, 2, 1, 14, 8, 7, 5, 10, 12, 3},
{0, 11, 10, 1, 6, 13, 12, 7, 2, 9, 8, 3, 4, 15, 14, 5},
{0, 10, 8, 2, 7, 13, 15, 5, 3, 9, 11, 1, 4, 14, 12, 6},
{0, 10, 9, 3, 7, 13, 14, 4, 2, 8, 11, 1, 5, 15, 12, 6},
{0, 11, 8, 3, 7, 12, 15, 4, 2, 9, 10, 1, 5, 14, 13, 6},
{0, 9, 8, 1, 7, 14, 15, 6, 3, 10, 11, 2, 4, 13, 12, 5},
{0, 11, 10, 1, 4, 15, 14, 5, 3, 8, 9, 2, 7, 12, 13, 6},
{0, 11, 10, 1, 5, 14, 15, 4, 2, 9, 8, 3, 7, 12, 13, 6},
{0, 11, 9, 2, 4, 15, 13, 6, 3, 8, 10, 1, 7, 12, 14, 5},
{0, 10, 9, 3, 7, 13, 14, 4, 1, 11, 8, 2, 6, 12, 15, 5},
{0, 11, 8, 3, 7, 12, 15, 4, 1, 10, 9, 2, 6, 13, 14, 5},
{0, 11, 9, 2, 6, 13, 15, 4, 1, 10, 8, 3, 7, 12, 14, 5},
{0, 11, 9, 2, 5, 14, 12, 7, 1, 10, 8, 3, 4, 15, 13, 6},
{0, 14, 10, 4, 3, 13, 9, 7, 2, 12, 8, 6, 1, 15, 11, 5},
{0, 12, 11, 7, 3, 15, 8, 4, 2, 14, 9, 5, 1, 13, 10, 6},
{0, 13, 10, 7, 3, 14, 9, 4, 2, 15, 8, 5, 1, 12, 11, 6},
{0, 14, 9, 7, 3, 13, 10, 4, 2, 12, 11, 5, 1, 15, 8, 6},
{0, 15, 8, 7, 3, 12, 11, 4, 2, 13, 10, 5, 1, 14, 9, 6},
{0, 13, 9, 4, 3, 14, 10, 7, 2, 15, 11, 6, 1, 12, 8, 5},
{0, 14, 10, 4, 3, 13, 9, 7, 1, 15, 11, 5, 2, 12, 8, 6},
{0, 14, 11, 5, 2, 12, 9, 7, 1, 15, 10, 4, 3, 13, 8, 6},
{0, 15, 10, 5, 2, 13, 8, 7, 1, 14, 11, 4, 3, 12, 9, 6},
{0, 12, 11, 7, 3, 15, 8, 4, 1, 13, 10, 6, 2, 14, 9, 5},
{0, 13, 10, 7, 3, 14, 9, 4, 1, 12, 11, 6, 2, 15, 8, 5},
{0, 13, 11, 6, 2, 15, 9, 4, 1, 12, 10, 7, 3, 14, 8, 5},
{0, 14, 9, 7, 3, 13, 10, 4, 1, 15, 8, 6, 2, 12, 11, 5},
{0, 15, 8, 7, 3, 12, 11, 4, 1, 14, 9, 6, 2, 13, 10, 5},
{0, 15, 9, 6, 2, 13, 11, 4, 1, 14, 8, 7, 3, 12, 10, 5},
{0, 13, 9, 4, 3, 14, 10, 7, 1, 12, 8, 5, 2, 15, 11, 6},
{0, 12, 7, 11, 6, 10, 1, 13, 4, 8, 3, 15, 2, 14, 5, 9},
{0, 14, 6, 8, 5, 11, 3, 13, 4, 10, 2, 12, 1, 15, 7, 9},
{0, 12, 7, 11, 5, 9, 2, 14, 4, 8, 3, 15, 1, 13, 6, 10},
{0, 13, 6, 11, 5, 8, 3, 14, 4, 9, 2, 15, 1, 12, 7, 10},
{0, 10, 7, 13, 6, 12, 1, 11, 4, 14, 3, 9, 2, 8, 5, 15},
{0, 8, 7, 15, 6, 14, 1, 9, 5, 13, 2, 10, 3, 11, 4, 12},
{0, 9, 7, 14, 6, 15, 1, 8, 4, 13, 3, 10, 2, 11, 5, 12},
{0, 10, 7, 13, 5, 15, 2, 8, 4, 14, 3, 9, 1, 11, 6, 12},
{0, 11, 6, 13, 5, 14, 3, 8, 4, 15, 2, 9, 1, 10, 7, 12},
{0, 9, 7, 14, 5, 12, 2, 11, 4, 13, 3, 10, 1, 8, 6, 15},
{0, 12, 7, 11, 6, 10, 1, 13, 2, 14, 5, 9, 4, 8, 3, 15},
{0, 14, 6, 8, 4, 10, 2, 12, 3, 13, 5, 11, 7, 9, 1, 15},
{0, 14, 6, 8, 5, 11, 3, 13, 2, 12, 4, 10, 7, 9, 1, 15},
{0, 14, 7, 9, 4, 10, 3, 13, 2, 12, 5, 11, 6, 8, 1, 15},
{0, 13, 6, 11, 4, 9, 2, 15, 3, 14, 5, 8, 7, 10, 1, 12},
{0, 13, 6, 11, 5, 8, 3, 14, 2, 15, 4, 9, 7, 10, 1, 12},
{0, 13, 7, 10, 4, 9, 3, 14, 2, 15, 5, 8, 6, 11, 1, 12},
{0, 14, 5, 11, 4, 10, 1, 15, 3, 13, 6, 8, 7, 9, 2, 12},
{0, 15, 5, 10, 4, 11, 1, 14, 2, 13, 7, 8, 6, 9, 3, 12},
{0, 13, 5, 8, 4, 9, 1, 12, 3, 14, 6, 11, 7, 10, 2, 15},
{0, 14, 6, 8, 5, 11, 3, 13, 1, 15, 7, 9, 4, 10, 2, 12},
{0, 14, 7, 9, 4, 10, 3, 13, 1, 15, 6, 8, 5, 11, 2, 12},
{0, 15, 6, 9, 4, 11, 2, 13, 1, 14, 7, 8, 5, 10, 3, 12},
{0, 12, 7, 11, 5, 9, 2, 14, 1, 13, 6, 10, 4, 8, 3, 15},
{0, 13, 6, 11, 5, 8, 3, 14, 1, 12, 7, 10, 4, 9, 2, 15},
{0, 13, 7, 10, 4, 9, 3, 14, 1, 12, 6, 11, 5, 8, 2, 15},
{0, 10, 7, 13, 6, 12, 1, 11, 2, 8, 5, 15, 4, 14, 3, 9},
{0, 8, 7, 15, 6, 14, 1, 9, 3, 11, 4, 12, 5, 13, 2, 10},
{0, 9, 7, 14, 6, 15, 1, 8, 2, 11, 5, 12, 4, 13, 3, 10},
{0, 11, 6, 13, 4, 15, 2, 9, 3, 8, 5, 14, 7, 12, 1, 10},
{0, 11, 6, 13, 5, 14, 3, 8, 2, 9, 4, 15, 7, 12, 1, 10},
{0, 11, 7, 12, 4, 15, 3, 8, 2, 9, 5, 14, 6, 13, 1, 10},
{0, 8, 7, 15, 5, 13, 2, 10, 3, 11, 4, 12, 6, 14, 1, 9},
{0, 11, 5, 14, 4, 15, 1, 10, 3, 8, 6, 13, 7, 12, 2, 9},
{0, 10, 7, 13, 5, 15, 2, 8, 1, 11, 6, 12, 4, 14, 3, 9},
{0, 11, 6, 13, 5, 14, 3, 8, 1, 10, 7, 12, 4, 15, 2, 9},
{0, 11, 7, 12, 4, 15, 3, 8, 1, 10, 6, 13, 5, 14, 2, 9},
{0, 9, 7, 14, 5, 12, 2, 11, 1, 8, 6, 15, 4, 13, 3, 10},
{0, 14, 6, 8, 3, 13, 5, 11, 2, 12, 4, 10, 1, 15, 7, 9},
{0, 12, 7, 11, 3, 15, 4, 8, 2, 14, 5, 9, 1, 13, 6, 10},
{0, 13, 6, 11, 3, 14, 5, 8, 2, 15, 4, 9, 1, 12, 7, 10},
{0, 14, 5, 11, 3, 13, 6, 8, 2, 12, 7, 9, 1, 15, 4, 10},
{0, 15, 4, 11, 3, 12, 7, 8, 2, 13, 6, 9, 1, 14, 5, 10},
{0, 13, 5, 8, 3, 14, 6, 11, 2, 15, 7, 10, 1, 12, 4, 9},
{0, 14, 6, 8, 3, 13, 5, 11, 1, 15, 7, 9, 2, 12, 4, 10},
{0, 14, 7, 9, 2, 12, 5, 11, 1, 15, 6, 8, 3, 13, 4, 10},
{0, 15, 6, 9, 2, 13, 4, 11, 1, 14, 7, 8, 3, 12, 5, 10},
{0, 12, 7, 11, 3, 15, 4, 8, 1, 13, 6, 10, 2, 14, 5, 9},
{0, 13, 6, 11, 3, 14, 5, 8, 1, 12, 7, 10, 2, 15, 4, 9},
{0, 13, 7, 10, 2, 15, 5, 8, 1, 12, 6, 11, 3, 14, 4, 9},
{0, 14, 5, 11, 3, 13, 6, 8, 1, 15, 4, 10, 2, 12, 7, 9},
{0, 15, 4, 11, 3, 12, 7, 8, 1, 14, 5, 10, 2, 13, 6, 9},
{0, 15, 5, 10, 2, 13, 7, 8, 1, 14, 4, 11, 3, 12, 6, 9},
{0, 13, 5, 8, 3, 14, 6, 11, 1, 12, 4, 9, 2, 15, 7, 10},
{0, 10, 7, 13, 3, 9, 4, 14, 2, 8, 5, 15, 1, 11, 6, 12},
{0, 11, 6, 13, 3, 8, 5, 14, 2, 9, 4, 15, 1, 10, 7, 12},
{0, 9, 7, 14, 3, 10, 4, 13, 2, 11, 5, 12, 1, 8, 6, 15},
{0, 11, 5, 14, 3, 8, 6, 13, 2, 9, 7, 12, 1, 10, 4, 15},
{0, 10, 7, 13, 3, 9, 4, 14, 1, 11, 6, 12, 2, 8, 5, 15},
{0, 11, 6, 13, 3, 8, 5, 14, 1, 10, 7, 12, 2, 9, 4, 15},
{0, 11, 7, 12, 2, 9, 5, 14, 1, 10, 6, 13, 3, 8, 4, 15},
{0, 9, 7, 14, 3, 10, 4, 13, 1, 8, 6, 15, 2, 11, 5, 12},
{0, 11, 5, 14, 3, 8, 6, 13, 1, 10, 4, 15, 2, 9, 7, 12},
{0, 14, 13, 3, 12, 2, 1, 15, 8, 6, 5, 11, 4, 10, 9, 7},
{0, 14, 12, 2, 10, 4, 6, 8, 9, 7, 5, 11, 3, 13, 15, 1},
{0, 14, 12, 2, 11, 5, 7, 9, 8, 6, 4, 10, 3, 13, 15, 1},
{0, 14, 13, 3, 10, 4, 7, 9, 8, 6, 5, 11, 2, 12, 15, 1},
{0, 15, 12, 3, 10, 5, 6, 9, 8, 7, 4, 11, 2, 13, 14, 1},
{0, 13, 12, 1, 10, 7, 6, 11, 9, 4, 5, 8, 3, 14, 15, 2},
{0, 13, 12, 1, 11, 6, 7, 10, 8, 5, 4, 9, 3, 14, 15, 2},
{0, 14, 13, 3, 9, 7, 4, 10, 8, 6, 5, 11, 1, 15, 12, 2},
{0, 15, 12, 3, 9, 6, 5, 10, 8, 7, 4, 11, 1, 14, 13, 2},
{0, 14, 11, 5, 10, 4, 1, 15, 8, 6, 3, 13, 2, 12, 9, 7},
{0, 12, 11, 7, 10, 6, 1, 13, 9, 5, 2, 14, 3, 15, 8, 4},
{0, 13, 11, 6, 10, 7, 1, 12, 8, 5, 3, 14, 2, 15, 9, 4},
{0, 14, 11, 5, 9, 7, 2, 12, 8, 6, 3, 13, 1, 15, 10, 4},
{0, 15, 10, 5, 9, 6, 3, 12, 8, 7, 2, 13, 1, 14, 11, 4},
{0, 13, 11, 6, 9, 4, 2, 15, 8, 5, 3, 14, 1, 12, 10, 7},
{0, 14, 13, 3, 12, 2, 1, 15, 4, 10, 9, 7, 8, 6, 5, 11},
{0, 14, 12, 2, 8, 6, 4, 10, 7, 9, 11, 5, 15, 1, 3, 13},
{0, 14, 12, 2, 9, 7, 5, 11, 6, 8, 10, 4, 15, 1, 3, 13},
{0, 15, 12, 3, 8, 7, 4, 11, 6, 9, 10, 5, 14, 1, 2, 13},
{0, 13, 12, 1, 8, 5, 4, 9, 7, 10, 11, 6, 15, 2, 3, 14},
{0, 13, 12, 1, 9, 4, 5, 8, 6, 11, 10, 7, 15, 2, 3, 14},
{0, 14, 12, 2, 10, 4, 6, 8, 5, 11, 9, 7, 15, 1, 3, 13},
{0, 14, 12, 2, 11, 5, 7, 9, 4, 10, 8, 6, 15, 1, 3, 13},
{0, 15, 12, 3, 10, 5, 6, 9, 4, 11, 8, 7, 14, 1, 2, 13},
{0, 13, 12, 1, 10, 7, 6, 11, 5, 8, 9, 4, 15, 2, 3, 14},
{0, 13, 12, 1, 11, 6, 7, 10, 4, 9, 8, 5, 15, 2, 3, 14},
{0, 15, 14, 1, 8, 7, 6, 9, 4, 11, 10, 5, 12, 3, 2, 13},
{0, 15, 12, 3, 8, 7, 4, 11, 5, 10, 9, 6, 13, 2, 1, 14},
{0, 15, 12, 3, 9, 6, 5, 10, 4, 11, 8, 7, 13, 2, 1, 14},
{0, 15, 13, 2, 8, 7, 5, 10, 4, 11, 9, 6, 12, 3, 1, 14},
{0, 14, 10, 4, 8, 6, 2, 12, 7, 9, 13, 3, 15, 1, 5, 11},
{0, 14, 10, 4, 9, 7, 3, 13, 6, 8, 12, 2, 15, 1, 5, 11},
{0, 15, 10, 5, 8, 7, 2, 13, 6, 9, 12, 3, 14, 1, 4, 11},
{0, 12, 10, 6, 9, 5, 3, 15, 7, 11, 13, 1, 14, 2, 4, 8},
{0, 12, 11, 7, 9, 5, 2, 14, 6, 10, 13, 1, 15, 3, 4, 8},
{0, 13, 10, 7, 9, 4, 3, 14, 6, 11, 12, 1, 15, 2, 5, 8},
{0, 13, 9, 4, 8, 5, 1, 12, 7, 10, 14, 3, 15, 2, 6, 11},
{0, 12, 11, 7, 10, 6, 1, 13, 5, 9, 14, 2, 15, 3, 4, 8},
{0, 13, 11, 6, 10, 7, 1, 12, 4, 9, 15, 2, 14, 3, 5, 8},
{0, 14, 10, 4, 9, 7, 3, 13, 5, 11, 15, 1, 12, 2, 6, 8},
{0, 14, 11, 5, 9, 7, 2, 12, 4, 10, 15, 1, 13, 3, 6, 8},
{0, 15, 10, 5, 9, 6, 3, 12, 4, 11, 14, 1, 13, 2, 7, 8},
{0, 13, 10, 7, 9, 4, 3, 14, 5, 8, 15, 2, 12, 1, 6, 11},
{0, 15, 9, 6, 8, 7, 1, 14, 5, 10, 12, 3, 13, 2, 4, 11},
{0, 11, 10, 1, 8, 3, 2, 9, 7, 12, 13, 6, 15, 4, 5, 14},
{0, 11, 10, 1, 9, 2, 3, 8, 6, 13, 12, 7, 15, 4, 5, 14},
{0, 11, 9, 2, 8, 3, 1, 10, 7, 12, 14, 5, 15, 4, 6, 13},
{0, 11, 10, 1, 9, 2, 3, 8, 5, 14, 15, 4, 12, 7, 6, 13},
{0, 14, 12, 2, 10, 4, 6, 8, 3, 13, 15, 1, 9, 7, 5, 11},
{0, 14, 13, 3, 10, 4, 7, 9, 2, 12, 15, 1, 8, 6, 5, 11},
{0, 15, 12, 3, 10, 5, 6, 9, 2, 13, 14, 1, 8, 7, 4, 11},
{0, 13, 12, 1, 10, 7, 6, 11, 3, 14, 15, 2, 9, 4, 5, 8},
{0, 13, 12, 1, 11, 6, 7, 10, 2, 15, 14, 3, 9, 4, 5, 8},
{0, 15, 14, 1, 8, 7, 6, 9, 2, 13, 12, 3, 10, 5, 4, 11},
{0, 14, 12, 2, 9, 7, 5, 11, 3, 13, 15, 1, 10, 4, 6, 8},
{0, 14, 13, 3, 9, 7, 4, 10, 2, 12, 15, 1, 11, 5, 6, 8},
{0, 15, 12, 3, 9, 6, 5, 10, 2, 13, 14, 1, 11, 4, 7, 8},
{0, 13, 12, 1, 9, 4, 5, 8, 3, 14, 15, 2, 10, 7, 6, 11},
{0, 14, 12, 2, 11, 5, 7, 9, 1, 15, 13, 3, 10, 4, 6, 8},
{0, 14, 13, 3, 10, 4, 7, 9, 1, 15, 12, 2, 11, 5, 6, 8},
{0, 15, 12, 3, 10, 5, 6, 9, 1, 14, 13, 2, 11, 4, 7, 8},
{0, 14, 13, 3, 9, 7, 4, 10, 1, 15, 12, 2, 8, 6, 5, 11},
{0, 15, 12, 3, 9, 6, 5, 10, 1, 14, 13, 2, 8, 7, 4, 11},
{0, 15, 13, 2, 8, 7, 5, 10, 1, 14, 12, 3, 9, 6, 4, 11},
{0, 14, 11, 5, 10, 4, 1, 15, 2, 12, 9, 7, 8, 6, 3, 13},
{0, 12, 11, 7, 10, 6, 1, 13, 3, 15, 8, 4, 9, 5, 2, 14},
{0, 13, 11, 6, 10, 7, 1, 12, 2, 15, 9, 4, 8, 5, 3, 14},
{0, 15, 10, 5, 8, 7, 2, 13, 3, 12, 9, 6, 11, 4, 1, 14},
{0, 15, 10, 5, 9, 6, 3, 12, 2, 13, 8, 7, 11, 4, 1, 14},
{0, 15, 11, 4, 8, 7, 3, 12, 2, 13, 9, 6, 10, 5, 1, 14},
{0, 12, 11, 7, 9, 5, 2, 14, 3, 15, 8, 4, 10, 6, 1, 13},
{0, 15, 9, 6, 8, 7, 1, 14, 3, 12, 10, 5, 11, 4, 2, 13},
{0, 14, 11, 5, 9, 7, 2, 12, 1, 15, 10, 4, 8, 6, 3, 13},
{0, 15, 10, 5, 9, 6, 3, 12, 1, 14, 11, 4, 8, 7, 2, 13},
{0, 15, 11, 4, 8, 7, 3, 12, 1, 14, 10, 5, 9, 6, 2, 13},
{0, 13, 11, 6, 9, 4, 2, 15, 1, 12, 10, 7, 8, 5, 3, 14},
{0, 14, 12, 2, 6, 8, 10, 4, 5, 11, 9, 7, 3, 13, 15, 1},
{0, 14, 12, 2, 7, 9, 11, 5, 4, 10, 8, 6, 3, 13, 15, 1},
{0, 14, 13, 3, 6, 8, 11, 5, 4, 10, 9, 7, 2, 12, 15, 1},
{0, 15, 12, 3, 6, 9, 10, 5, 4, 11, 8, 7, 2, 13, 14, 1},
{0, 13, 12, 1, 6, 11, 10, 7, 5, 8, 9, 4, 3, 14, 15, 2},
{0, 13, 12, 1, 7, 10, 11, 6, 4, 9, 8, 5, 3, 14, 15, 2},
{0, 14, 13, 3, 5, 11, 8, 6, 4, 10, 9, 7, 1, 15, 12, 2},
{0, 15, 12, 3, 5, 10, 9, 6, 4, 11, 8, 7, 1, 14, 13, 2},
{0, 12, 9, 5, 7, 11, 14, 2, 6, 10, 15, 3, 1, 13, 8, 4},
{0, 13, 8, 5, 7, 10, 15, 2, 6, 11, 14, 3, 1, 12, 9, 4},
{0, 14, 10, 4, 6, 8, 12, 2, 5, 11, 15, 1, 3, 13, 9, 7},
{0, 14, 11, 5, 6, 8, 13, 3, 4, 10, 15, 1, 2, 12, 9, 7},
{0, 15, 10, 5, 6, 9, 12, 3, 4, 11, 14, 1, 2, 13, 8, 7},
{0, 12, 10, 6, 7, 11, 13, 1, 5, 9, 15, 3, 2, 14, 8, 4},
{0, 12, 11, 7, 6, 10, 13, 1, 5, 9, 14, 2, 3, 15, 8, 4},
{0, 13, 10, 7, 6, 11, 12, 1, 5, 8, 15, 2, 3, 14, 9, 4},
{0, 14, 8, 6, 7, 9, 15, 1, 5, 11, 13, 3, 2, 12, 10, 4},
{0, 14, 9, 7, 6, 8, 15, 1, 5, 11, 12, 2, 3, 13, 10, 4},
{0, 15, 8, 7, 6, 9, 14, 1, 5, 10, 13, 2, 3, 12, 11, 4},
{0, 13, 9, 4, 6, 11, 15, 2, 5, 8, 12, 1, 3, 14, 10, 7},
{0, 13, 11, 6, 5, 8, 14, 3, 4, 9, 15, 2, 1, 12, 10, 7},
{0, 15, 9, 6, 5, 10, 12, 3, 4, 11, 13, 2, 1, 14, 8, 7},
{0, 10, 9, 3, 7, 13, 14, 4, 6, 12, 15, 5, 1, 11, 8, 2},
{0, 11, 8, 3, 7, 12, 15, 4, 6, 13, 14, 5, 1, 10, 9, 2},
{0, 11, 10, 1, 6, 13, 12, 7, 5, 14, 15, 4, 3, 8, 9, 2},
{0, 11, 10, 1, 7, 12, 13, 6, 4, 15, 14, 5, 3, 8, 9, 2},
{0, 10, 9, 3, 7, 13, 14, 4, 5, 15, 12, 6, 2, 8, 11, 1},
{0, 11, 8, 3, 7, 12, 15, 4, 5, 14, 13, 6, 2, 9, 10, 1},
{0, 11, 9, 2, 6, 13, 15, 4, 5, 14, 12, 7, 3, 8, 10, 1},
{0, 11, 9, 2, 7, 12, 14, 5, 4, 15, 13, 6, 3, 8, 10, 1},
{0, 14, 12, 2, 6, 8, 10, 4, 3, 13, 15, 1, 5, 11, 9, 7},
{0, 14, 13, 3, 6, 8, 11, 5, 2, 12, 15, 1, 4, 10, 9, 7},
{0, 15, 12, 3, 6, 9, 10, 5, 2, 13, 14, 1, 4, 11, 8, 7},
{0, 13, 12, 1, 6, 11, 10, 7, 3, 14, 15, 2, 5, 8, 9, 4},
{0, 13, 12, 1, 7, 10, 11, 6, 2, 15, 14, 3, 5, 8, 9, 4},
{0, 15, 14, 1, 4, 11, 10, 5, 2, 13, 12, 3, 6, 9, 8, 7},
{0, 14, 12, 2, 5, 11, 9, 7, 3, 13, 15, 1, 6, 8, 10, 4},
{0, 14, 13, 3, 5, 11, 8, 6, 2, 12, 15, 1, 7, 9, 10, 4},
{0, 15, 12, 3, 5, 10, 9, 6, 2, 13, 14, 1, 7, 8, 11, 4},
{0, 13, 12, 1, 5, 8, 9, 4, 3, 14, 15, 2, 6, 11, 10, 7},
{0, 14, 12, 2, 7, 9, 11, 5, 1, 15, 13, 3, 6, 8, 10, 4},
{0, 14, 13, 3, 6, 8, 11, 5, 1, 15, 12, 2, 7, 9, 10, 4},
{0, 15, 12, 3, 6, 9, 10, 5, 1, 14, 13, 2, 7, 8, 11, 4},
{0, 14, 13, 3, 5, 11, 8, 6, 1, 15, 12, 2, 4, 10, 9, 7},
{0, 15, 12, 3, 5, 10, 9, 6, 1, 14, 13, 2, 4, 11, 8, 7},
{0, 15, 13, 2, 4, 11, 9, 6, 1, 14, 12, 3, 5, 10, 8, 7},
{0, 14, 10, 4, 6, 8, 12, 2, 3, 13, 9, 7, 5, 11, 15, 1},
{0, 14, 10, 4, 7, 9, 13, 3, 2, 12, 8, 6, 5, 11, 15, 1},
{0, 14, 11, 5, 6, 8, 13, 3, 2, 12, 9, 7, 4, 10, 15, 1},
{0, 15, 10, 5, 6, 9, 12, 3, 2, 13, 8, 7, 4, 11, 14, 1},
{0, 12, 10, 6, 7, 11, 13, 1, 3, 15, 9, 5, 4, 8, 14, 2},
{0, 12, 11, 7, 6, 10, 13, 1, 3, 15, 8, 4, 5, 9, 14, 2},
{0, 13, 10, 7, 6, 11, 12, 1, 3, 14, 9, 4, 5, 8, 15, 2},
{0, 14, 8, 6, 7, 9, 15, 1, 3, 13, 11, 5, 4, 10, 12, 2},
{0, 14, 9, 7, 6, 8, 15, 1, 3, 13, 10, 4, 5, 11, 12, 2},
{0, 15, 8, 7, 6, 9, 14, 1, 3, 12, 11, 4, 5, 10, 13, 2},
{0, 12, 9, 5, 7, 11, 14, 2, 3, 15, 10, 6, 4, 8, 13, 1},
{0, 13, 8, 5, 7, 10, 15, 2, 3, 14, 11, 6, 4, 9, 12, 1},
{0, 13, 9, 4, 6, 11, 15, 2, 3, 14, 10, 7, 5, 8, 12, 1},
{0, 13, 9, 4, 7, 10, 14, 3, 2, 15, 11, 6, 5, 8, 12, 1},
{0, 14, 10, 4, 5, 11, 15, 1, 3, 13, 9, 7, 6, 8, 12, 2},
{0, 14, 11, 5, 4, 10, 15, 1, 3, 13, 8, 6, 7, 9, 12, 2},
{0, 15, 10, 5, 4, 11, 14, 1, 3, 12, 9, 6, 7, 8, 13, 2},
{0, 12, 11, 7, 5, 9, 14, 2, 3, 15, 8, 4, 6, 10, 13, 1},
{0, 13, 10, 7, 5, 8, 15, 2, 3, 14, 9, 4, 6, 11, 12, 1},
{0, 13, 11, 6, 4, 9, 15, 2, 3, 14, 8, 5, 7, 10, 12, 1},
{0, 13, 11, 6, 5, 8, 14, 3, 2, 15, 9, 4, 7, 10, 12, 1},
{0, 14, 9, 7, 5, 11, 12, 2, 3, 13, 10, 4, 6, 8, 15, 1},
{0, 15, 8, 7, 5, 10, 13, 2, 3, 12, 11, 4, 6, 9, 14, 1},
{0, 15, 9, 6, 4, 11, 13, 2, 3, 12, 10, 5, 7, 8, 14, 1},
{0, 15, 9, 6, 5, 10, 12, 3, 2, 13, 11, 4, 7, 8, 14, 1},
{0, 13, 9, 4, 5, 8, 12, 1, 3, 14, 10, 7, 6, 11, 15, 2},
{0, 14, 10, 4, 7, 9, 13, 3, 1, 15, 11, 5, 6, 8, 12, 2},
{0, 14, 11, 5, 6, 8, 13, 3, 1, 15, 10, 4, 7, 9, 12, 2},
{0, 15, 10, 5, 6, 9, 12, 3, 1, 14, 11, 4, 7, 8, 13, 2},
{0, 13, 9, 4, 7, 10, 14, 3, 1, 12, 8, 5, 6, 11, 15, 2},
{0, 13, 11, 6, 5, 8, 14, 3, 1, 12, 10, 7, 4, 9, 15, 2},
{0, 15, 9, 6, 5, 10, 12, 3, 1, 14, 8, 7, 4, 11, 13, 2},
{0, 11, 10, 1, 6, 13, 12, 7, 3, 8, 9, 2, 5, 14, 15, 4},
{0, 11, 10, 1, 7, 12, 13, 6, 2, 9, 8, 3, 5, 14, 15, 4},
{0, 11, 9, 2, 6, 13, 15, 4, 3, 8, 10, 1, 5, 14, 12, 7},
{0, 11, 10, 1, 5, 14, 15, 4, 3, 8, 9, 2, 6, 13, 12, 7},
{0, 11, 9, 2, 5, 14, 12, 7, 3, 8, 10, 1, 6, 13, 15, 4},
{0, 11, 9, 2, 7, 12, 14, 5, 1, 10, 8, 3, 6, 13, 15, 4},
{0, 14, 11, 5, 3, 13, 8, 6, 2, 12, 9, 7, 1, 15, 10, 4},
{0, 15, 10, 5, 3, 12, 9, 6, 2, 13, 8, 7, 1, 14, 11, 4},
{0, 13, 11, 6, 3, 14, 8, 5, 2, 15, 9, 4, 1, 12, 10, 7},
{0, 15, 9, 6, 3, 12, 10, 5, 2, 13, 11, 4, 1, 14, 8, 7},
{0, 14, 11, 5, 3, 13, 8, 6, 1, 15, 10, 4, 2, 12, 9, 7},
{0, 15, 10, 5, 3, 12, 9, 6, 1, 14, 11, 4, 2, 13, 8, 7},
{0, 15, 11, 4, 2, 13, 9, 6, 1, 14, 10, 5, 3, 12, 8, 7},
{0, 13, 11, 6, 3, 14, 8, 5, 1, 12, 10, 7, 2, 15, 9, 4},
{0, 15, 9, 6, 3, 12, 10, 5, 1, 14, 8, 7, 2, 13, 11, 4},
{0, 14, 7, 9, 6, 8, 1, 15, 4, 10, 3, 13, 2, 12, 5, 11},
{0, 12, 7, 11, 6, 10, 1, 13, 5, 9, 2, 14, 3, 15, 4, 8},
{0, 13, 7, 10, 6, 11, 1, 12, 4, 9, 3, 14, 2, 15, 5, 8},
{0, 14, 7, 9, 5, 11, 2, 12, 4, 10, 3, 13, 1, 15, 6, 8},
{0, 15, 6, 9, 5, 10, 3, 12, 4, 11, 2, 13, 1, 14, 7, 8},
{0, 13, 7, 10, 5, 8, 2, 15, 4, 9, 3, 14, 1, 12, 6, 11},
{0, 10, 7, 13, 6, 12, 1, 11, 5, 15, 2, 8, 3, 9, 4, 14},
{0, 11, 7, 12, 6, 13, 1, 10, 4, 15, 3, 8, 2, 9, 5, 14},
{0, 9, 7, 14, 6, 15, 1, 8, 5, 12, 2, 11, 3, 10, 4, 13},
{0, 11, 7, 12, 5, 14, 2, 9, 4, 15, 3, 8, 1, 10, 6, 13},
{0, 14, 7, 9, 6, 8, 1, 15, 2, 12, 5, 11, 4, 10, 3, 13},
{0, 12, 7, 11, 6, 10, 1, 13, 3, 15, 4, 8, 5, 9, 2, 14},
{0, 13, 7, 10, 6, 11, 1, 12, 2, 15, 5, 8, 4, 9, 3, 14},
{0, 15, 6, 9, 4, 11, 2, 13, 3, 12, 5, 10, 7, 8, 1, 14},
{0, 15, 6, 9, 5, 10, 3, 12, 2, 13, 4, 11, 7, 8, 1, 14},
{0, 15, 7, 8, 4, 11, 3, 12, 2, 13, 5, 10, 6, 9, 1, 14},
{0, 12, 7, 11, 5, 9, 2, 14, 3, 15, 4, 8, 6, 10, 1, 13},
{0, 15, 5, 10, 4, 11, 1, 14, 3, 12, 6, 9, 7, 8, 2, 13},
{0, 14, 7, 9, 5, 11, 2, 12, 1, 15, 6, 8, 4, 10, 3, 13},
{0, 15, 6, 9, 5, 10, 3, 12, 1, 14, 7, 8, 4, 11, 2, 13},
{0, 15, 7, 8, 4, 11, 3, 12, 1, 14, 6, 9, 5, 10, 2, 13},
{0, 13, 7, 10, 5, 8, 2, 15, 1, 12, 6, 11, 4, 9, 3, 14},
{0, 10, 7, 13, 6, 12, 1, 11, 3, 9, 4, 14, 5, 15, 2, 8},
{0, 11, 7, 12, 6, 13, 1, 10, 2, 9, 5, 14, 4, 15, 3, 8},
{0, 9, 7, 14, 6, 15, 1, 8, 3, 10, 4, 13, 5, 12, 2, 11},
{0, 10, 7, 13, 5, 15, 2, 8, 3, 9, 4, 14, 6, 12, 1, 11},
{0, 9, 7, 14, 5, 12, 2, 11, 3, 10, 4, 13, 6, 15, 1, 8},
{0, 11, 7, 12, 5, 14, 2, 9, 1, 10, 6, 13, 4, 15, 3, 8},
{0, 14, 7, 9, 3, 13, 4, 10, 2, 12, 5, 11, 1, 15, 6, 8},
{0, 15, 6, 9, 3, 12, 5, 10, 2, 13, 4, 11, 1, 14, 7, 8},
{0, 13, 7, 10, 3, 14, 4, 9, 2, 15, 5, 8, 1, 12, 6, 11},
{0, 15, 5, 10, 3, 12, 6, 9, 2, 13, 7, 8, 1, 14, 4, 11},
{0, 14, 7, 9, 3, 13, 4, 10, 1, 15, 6, 8, 2, 12, 5, 11},
{0, 15, 6, 9, 3, 12, 5, 10, 1, 14, 7, 8, 2, 13, 4, 11},
{0, 15, 7, 8, 2, 13, 5, 10, 1, 14, 6, 9, 3, 12, 4, 11},
{0, 13, 7, 10, 3, 14, 4, 9, 1, 12, 6, 11, 2, 15, 5, 8},
{0, 15, 5, 10, 3, 12, 6, 9, 1, 14, 4, 11, 2, 13, 7, 8},
{0, 11, 7, 12, 3, 8, 4, 15, 2, 9, 5, 14, 1, 10, 6, 13},
{0, 11, 7, 12, 3, 8, 4, 15, 1, 10, 6, 13, 2, 9, 5, 14},
{0, 14, 13, 3, 12, 2, 1, 15, 10, 4, 7, 9, 6, 8, 11, 5},
{0, 15, 14, 1, 12, 3, 2, 13, 8, 7, 6, 9, 4, 11, 10, 5},
{0, 14, 13, 3, 12, 2, 1, 15, 9, 7, 4, 10, 5, 11, 8, 6},
{0, 15, 13, 2, 12, 3, 1, 14, 8, 7, 5, 10, 4, 11, 9, 6},
{0, 14, 12, 2, 11, 5, 7, 9, 10, 4, 6, 8, 1, 15, 13, 3},
{0, 15, 14, 1, 10, 5, 4, 11, 8, 7, 6, 9, 2, 13, 12, 3},
{0, 13, 12, 1, 11, 6, 7, 10, 9, 4, 5, 8, 2, 15, 14, 3},
{0, 15, 13, 2, 9, 6, 4, 11, 8, 7, 5, 10, 1, 14, 12, 3},
{0, 14, 11, 5, 10, 4, 1, 15, 9, 7, 2, 12, 3, 13, 8, 6},
{0, 15, 11, 4, 10, 5, 1, 14, 8, 7, 3, 12, 2, 13, 9, 6},
{0, 13, 11, 6, 10, 7, 1, 12, 9, 4, 2, 15, 3, 14, 8, 5},
{0, 15, 11, 4, 9, 6, 2, 13, 8, 7, 3, 12, 1, 14, 10, 5},
{0, 14, 13, 3, 12, 2, 1, 15, 6, 8, 11, 5, 10, 4, 7, 9},
{0, 15, 14, 1, 12, 3, 2, 13, 4, 11, 10, 5, 8, 7, 6, 9},
{0, 14, 13, 3, 12, 2, 1, 15, 5, 11, 8, 6, 9, 7, 4, 10},
{0, 15, 13, 2, 12, 3, 1, 14, 4, 11, 9, 6, 8, 7, 5, 10},
{0, 14, 12, 2, 10, 4, 6, 8, 7, 9, 11, 5, 13, 3, 1, 15},
{0, 14, 12, 2, 11, 5, 7, 9, 6, 8, 10, 4, 13, 3, 1, 15},
{0, 14, 13, 3, 10, 4, 7, 9, 6, 8, 11, 5, 12, 2, 1, 15},
{0, 14, 13, 3, 8, 6, 5, 11, 7, 9, 10, 4, 15, 1, 2, 12},
{0, 14, 13, 3, 9, 7, 4, 10, 6, 8, 11, 5, 15, 1, 2, 12},
{0, 15, 13, 2, 8, 7, 5, 10, 6, 9, 11, 4, 14, 1, 3, 12},
{0, 13, 12, 1, 9, 4, 5, 8, 7, 10, 11, 6, 14, 3, 2, 15},
{0, 14, 13, 3, 10, 4, 7, 9, 5, 11, 8, 6, 15, 1, 2, 12},
{0, 14, 13, 3, 11, 5, 6, 8, 4, 10, 9, 7, 15, 1, 2, 12},
{0, 15, 13, 2, 10, 5, 7, 8, 4, 11, 9, 6, 14, 1, 3, 12},
{0, 13, 12, 1, 11, 6, 7, 10, 5, 8, 9, 4, 14, 3, 2, 15},
{0, 15, 14, 1, 8, 7, 6, 9, 5, 10, 11, 4, 13, 2, 3, 12},
{0, 15, 14, 1, 9, 6, 7, 8, 4, 11, 10, 5, 13, 2, 3, 12},
{0, 14, 13, 3, 9, 7, 4, 10, 5, 11, 8, 6, 12, 2, 1, 15},
{0, 14, 11, 5, 10, 4, 1, 15, 6, 8, 13, 3, 12, 2, 7, 9},
{0, 14, 11, 5, 8, 6, 3, 13, 7, 9, 12, 2, 15, 1, 4, 10},
{0, 14, 11, 5, 9, 7, 2, 12, 6, 8, 13, 3, 15, 1, 4, 10},
{0, 15, 11, 4, 8, 7, 3, 12, 6, 9, 13, 2, 14, 1, 5, 10},
{0, 13, 11, 6, 8, 5, 3, 14, 7, 10, 12, 1, 15, 2, 4, 9},
{0, 13, 11, 6, 10, 7, 1, 12, 5, 8, 14, 3, 15, 2, 4, 9},
{0, 15, 11, 4, 8, 7, 3, 12, 5, 10, 14, 1, 13, 2, 6, 9},
{0, 13, 11, 6, 9, 4, 2, 15, 5, 8, 14, 3, 12, 1, 7, 10},
{0, 11, 10, 1, 9, 2, 3, 8, 7, 12, 13, 6, 14, 5, 4, 15},
{0, 15, 14, 1, 10, 5, 4, 11, 2, 13, 12, 3, 8, 7, 6, 9},
{0, 14, 12, 2, 11, 5, 7, 9, 3, 13, 15, 1, 8, 6, 4, 10},
{0, 14, 13, 3, 11, 5, 6, 8, 2, 12, 15, 1, 9, 7, 4, 10},
{0, 15, 12, 3, 11, 4, 7, 8, 2, 13, 14, 1, 9, 6, 5, 10},
{0, 13, 12, 1, 11, 6, 7, 10, 3, 14, 15, 2, 8, 5, 4, 9},
{0, 15, 14, 1, 8, 7, 6, 9, 3, 12, 13, 2, 11, 4, 5, 10},
{0, 15, 14, 1, 9, 6, 7, 8, 2, 13, 12, 3, 11, 4, 5, 10},
{0, 15, 13, 2, 8, 7, 5, 10, 3, 12, 14, 1, 11, 4, 6, 9},
{0, 14, 13, 3, 11, 5, 6, 8, 1, 15, 12, 2, 10, 4, 7, 9},
{0, 15, 12, 3, 11, 4, 7, 8, 1, 14, 13, 2, 10, 5, 6, 9},
{0, 15, 13, 2, 10, 5, 7, 8, 1, 14, 12, 3, 11, 4, 6, 9},
{0, 15, 13, 2, 9, 6, 4, 11, 1, 14, 12, 3, 8, 7, 5, 10},
{0, 14, 11, 5, 10, 4, 1, 15, 3, 13, 8, 6, 9, 7, 2, 12},
{0, 15, 11, 4, 10, 5, 1, 14, 2, 13, 9, 6, 8, 7, 3, 12},
{0, 13, 11, 6, 10, 7, 1, 12, 3, 14, 8, 5, 9, 4, 2, 15},
{0, 14, 11, 5, 9, 7, 2, 12, 3, 13, 8, 6, 10, 4, 1, 15},
{0, 13, 11, 6, 9, 4, 2, 15, 3, 14, 8, 5, 10, 7, 1, 12},
{0, 15, 11, 4, 9, 6, 2, 13, 1, 14, 10, 5, 8, 7, 3, 12},
{0, 14, 12, 2, 7, 9, 11, 5, 6, 8, 10, 4, 1, 15, 13, 3},
{0, 15, 14, 1, 6, 9, 8, 7, 4, 11, 10, 5, 2, 13, 12, 3},
{0, 13, 12, 1, 7, 10, 11, 6, 5, 8, 9, 4, 2, 15, 14, 3},
{0, 15, 13, 2, 5, 10, 8, 7, 4, 11, 9, 6, 1, 14, 12, 3},
{0, 14, 10, 4, 7, 9, 13, 3, 6, 8, 12, 2, 1, 15, 11, 5},
{0, 13, 9, 4, 7, 10, 14, 3, 6, 11, 15, 2, 1, 12, 8, 5},
{0, 14, 10, 4, 7, 9, 13, 3, 5, 11, 15, 1, 2, 12, 8, 6},
{0, 14, 11, 5, 7, 9, 12, 2, 4, 10, 15, 1, 3, 13, 8, 6},
{0, 15, 10, 5, 7, 8, 13, 2, 4, 11, 14, 1, 3, 12, 9, 6},
{0, 13, 11, 6, 7, 10, 12, 1, 4, 9, 15, 2, 3, 14, 8, 5},
{0, 15, 9, 6, 7, 8, 14, 1, 4, 11, 13, 2, 3, 12, 10, 5},
{0, 13, 9, 4, 7, 10, 14, 3, 5, 8, 12, 1, 2, 15, 11, 6},
{0, 11, 9, 2, 7, 12, 14, 5, 6, 13, 15, 4, 1, 10, 8, 3},
{0, 11, 10, 1, 7, 12, 13, 6, 5, 14, 15, 4, 2, 9, 8, 3},
{0, 15, 14, 1, 6, 9, 8, 7, 2, 13, 12, 3, 4, 11, 10, 5},
{0, 14, 12, 2, 7, 9, 11, 5, 3, 13, 15, 1, 4, 10, 8, 6},
{0, 14, 13, 3, 7, 9, 10, 4, 2, 12, 15, 1, 5, 11, 8, 6},
{0, 15, 12, 3, 7, 8, 11, 4, 2, 13, 14, 1, 5, 10, 9, 6},
{0, 13, 12, 1, 7, 10, 11, 6, 3, 14, 15, 2, 4, 9, 8, 5},
{0, 15, 14, 1, 4, 11, 10, 5, 3, 12, 13, 2, 7, 8, 9, 6},
{0, 15, 14, 1, 5, 10, 11, 4, 2, 13, 12, 3, 7, 8, 9, 6},
{0, 15, 13, 2, 4, 11, 9, 6, 3, 12, 14, 1, 7, 8, 10, 5},
{0, 14, 13, 3, 7, 9, 10, 4, 1, 15, 12, 2, 6, 8, 11, 5},
{0, 15, 12, 3, 7, 8, 11, 4, 1, 14, 13, 2, 6, 9, 10, 5},
{0, 15, 13, 2, 6, 9, 11, 4, 1, 14, 12, 3, 7, 8, 10, 5},
{0, 15, 13, 2, 5, 10, 8, 7, 1, 14, 12, 3, 4, 11, 9, 6},
{0, 13, 11, 6, 7, 10, 12, 1, 2, 15, 9, 4, 5, 8, 14, 3},
{0, 15, 9, 6, 7, 8, 14, 1, 2, 13, 11, 4, 5, 10, 12, 3},
{0, 15, 11, 4, 5, 10, 14, 1, 2, 13, 9, 6, 7, 8, 12, 3},
{0, 14, 11, 5, 7, 9, 12, 2, 1, 15, 10, 4, 6, 8, 13, 3},
{0, 15, 10, 5, 7, 8, 13, 2, 1, 14, 11, 4, 6, 9, 12, 3},
{0, 15, 11, 4, 6, 9, 13, 2, 1, 14, 10, 5, 7, 8, 12, 3},
{0, 11, 10, 1, 7, 12, 13, 6, 3, 8, 9, 2, 4, 15, 14, 5},
{0, 11, 9, 2, 7, 12, 14, 5, 3, 8, 10, 1, 4, 15, 13, 6},
{0, 15, 11, 4, 3, 12, 8, 7, 2, 13, 9, 6, 1, 14, 10, 5},
{0, 15, 11, 4, 3, 12, 8, 7, 1, 14, 10, 5, 2, 13, 9, 6},
{0, 14, 7, 9, 6, 8, 1, 15, 5, 11, 2, 12, 3, 13, 4, 10},
{0, 15, 7, 8, 6, 9, 1, 14, 4, 11, 3, 12, 2, 13, 5, 10},
{0, 13, 7, 10, 6, 11, 1, 12, 5, 8, 2, 15, 3, 14, 4, 9},
{0, 15, 7, 8, 5, 10, 2, 13, 4, 11, 3, 12, 1, 14, 6, 9},
{0, 11, 7, 12, 6, 13, 1, 10, 5, 14, 2, 9, 3, 8, 4, 15},
{0, 14, 7, 9, 6, 8, 1, 15, 3, 13, 4, 10, 5, 11, 2, 12},
{0, 15, 7, 8, 6, 9, 1, 14, 2, 13, 5, 10, 4, 11, 3, 12},
{0, 13, 7, 10, 6, 11, 1, 12, 3, 14, 4, 9, 5, 8, 2, 15},
{0, 14, 7, 9, 5, 11, 2, 12, 3, 13, 4, 10, 6, 8, 1, 15},
{0, 13, 7, 10, 5, 8, 2, 15, 3, 14, 4, 9, 6, 11, 1, 12},
{0, 15, 7, 8, 5, 10, 2, 13, 1, 14, 6, 9, 4, 11, 3, 12},
{0, 11, 7, 12, 6, 13, 1, 10, 3, 8, 4, 15, 5, 14, 2, 9},
{0, 11, 7, 12, 5, 14, 2, 9, 3, 8, 4, 15, 6, 13, 1, 10},
{0, 15, 7, 8, 3, 12, 4, 11, 2, 13, 5, 10, 1, 14, 6, 9},
{0, 15, 7, 8, 3, 12, 4, 11, 1, 14, 6, 9, 2, 13, 5, 10},
{0, 15, 14, 1, 12, 3, 2, 13, 10, 5, 4, 11, 6, 9, 8, 7},
{0, 14, 13, 3, 12, 2, 1, 15, 11, 5, 6, 8, 7, 9, 10, 4},
{0, 15, 13, 2, 12, 3, 1, 14, 10, 5, 7, 8, 6, 9, 11, 4},
{0, 15, 14, 1, 12, 3, 2, 13, 9, 6, 7, 8, 5, 10, 11, 4},
{0, 15, 14, 1, 13, 2, 3, 12, 8, 7, 6, 9, 5, 10, 11, 4},
{0, 15, 13, 2, 12, 3, 1, 14, 9, 6, 4, 11, 5, 10, 8, 7},
{0, 14, 13, 3, 11, 5, 6, 8, 10, 4, 7, 9, 1, 15, 12, 2},
{0, 15, 12, 3, 11, 4, 7, 8, 10, 5, 6, 9, 1, 14, 13, 2},
{0, 15, 14, 1, 10, 5, 4, 11, 9, 6, 7, 8, 3, 12, 13, 2},
{0, 15, 14, 1, 11, 4, 5, 10, 8, 7, 6, 9, 3, 12, 13, 2},
{0, 14, 13, 3, 11, 5, 6, 8, 9, 7, 4, 10, 2, 12, 15, 1},
{0, 15, 12, 3, 11, 4, 7, 8, 9, 6, 5, 10, 2, 13, 14, 1},
{0, 15, 13, 2, 10, 5, 7, 8, 9, 6, 4, 11, 3, 12, 14, 1},
{0, 15, 13, 2, 11, 4, 6, 9, 8, 7, 5, 10, 3, 12, 14, 1},
{0, 15, 11, 4, 10, 5, 1, 14, 9, 6, 2, 13, 3, 12, 8, 7},
{0, 15, 14, 1, 12, 3, 2, 13, 6, 9, 8, 7, 10, 5, 4, 11},
{0, 14, 13, 3, 12, 2, 1, 15, 7, 9, 10, 4, 11, 5, 6, 8},
{0, 15, 13, 2, 12, 3, 1, 14, 6, 9, 11, 4, 10, 5, 7, 8},
{0, 15, 14, 1, 12, 3, 2, 13, 5, 10, 11, 4, 9, 6, 7, 8},
{0, 15, 14, 1, 13, 2, 3, 12, 4, 11, 10, 5, 9, 6, 7, 8},
{0, 15, 13, 2, 12, 3, 1, 14, 5, 10, 8, 7, 9, 6, 4, 11},
{0, 15, 14, 1, 10, 5, 4, 11, 6, 9, 8, 7, 12, 3, 2, 13},
{0, 15, 12, 3, 10, 5, 6, 9, 7, 8, 11, 4, 13, 2, 1, 14},
{0, 15, 12, 3, 11, 4, 7, 8, 6, 9, 10, 5, 13, 2, 1, 14},
{0, 15, 13, 2, 10, 5, 7, 8, 6, 9, 11, 4, 12, 3, 1, 14},
{0, 15, 12, 3, 9, 6, 5, 10, 7, 8, 11, 4, 14, 1, 2, 13},
{0, 15, 12, 3, 11, 4, 7, 8, 5, 10, 9, 6, 14, 1, 2, 13},
{0, 15, 14, 1, 9, 6, 7, 8, 5, 10, 11, 4, 12, 3, 2, 13},
{0, 15, 13, 2, 9, 6, 4, 11, 5, 10, 8, 7, 12, 3, 1, 14},
{0, 14, 11, 5, 10, 4, 1, 15, 7, 9, 12, 2, 13, 3, 6, 8},
{0, 15, 11, 4, 10, 5, 1, 14, 6, 9, 13, 2, 12, 3, 7, 8},
{0, 15, 10, 5, 9, 6, 3, 12, 7, 8, 13, 2, 14, 1, 4, 11},
{0, 13, 11, 6, 9, 4, 2, 15, 7, 10, 12, 1, 14, 3, 5, 8},
{0, 15, 11, 4, 9, 6, 2, 13, 5, 10, 14, 1, 12, 3, 7, 8},
{0, 15, 14, 1, 10, 5, 4, 11, 3, 12, 13, 2, 9, 6, 7, 8},
{0, 15, 14, 1, 11, 4, 5, 10, 2, 13, 12, 3, 9, 6, 7, 8},
{0, 15, 13, 2, 10, 5, 7, 8, 3, 12, 14, 1, 9, 6, 4, 11},
{0, 15, 14, 1, 9, 6, 7, 8, 3, 12, 13, 2, 10, 5, 4, 11},
{0, 15, 13, 2, 9, 6, 4, 11, 3, 12, 14, 1, 10, 5, 7, 8},
{0, 15, 13, 2, 11, 4, 6, 9, 1, 14, 12, 3, 10, 5, 7, 8},
{0, 15, 11, 4, 10, 5, 1, 14, 3, 12, 8, 7, 9, 6, 2, 13},
{0, 15, 11, 4, 9, 6, 2, 13, 3, 12, 8, 7, 10, 5, 1, 14},
{0, 14, 13, 3, 7, 9, 10, 4, 6, 8, 11, 5, 1, 15, 12, 2},
{0, 15, 12, 3, 7, 8, 11, 4, 6, 9, 10, 5, 1, 14, 13, 2},
{0, 15, 14, 1, 6, 9, 8, 7, 5, 10, 11, 4, 3, 12, 13, 2},
{0, 15, 14, 1, 7, 8, 9, 6, 4, 11, 10, 5, 3, 12, 13, 2},
{0, 14, 13, 3, 7, 9, 10, 4, 5, 11, 8, 6, 2, 12, 15, 1},
{0, 15, 12, 3, 7, 8, 11, 4, 5, 10, 9, 6, 2, 13, 14, 1},
{0, 15, 13, 2, 6, 9, 11, 4, 5, 10, 8, 7, 3, 12, 14, 1},
{0, 15, 13, 2, 7, 8, 10, 5, 4, 11, 9, 6, 3, 12, 14, 1},
{0, 14, 11, 5, 7, 9, 12, 2, 6, 8, 13, 3, 1, 15, 10, 4},
{0, 15, 10, 5, 7, 8, 13, 2, 6, 9, 12, 3, 1, 14, 11, 4},
{0, 15, 11, 4, 6, 9, 13, 2, 5, 10, 14, 1, 3, 12, 8, 7},
{0, 13, 11, 6, 7, 10, 12, 1, 5, 8, 14, 3, 2, 15, 9, 4},
{0, 15, 9, 6, 7, 8, 14, 1, 5, 10, 12, 3, 2, 13, 11, 4},
{0, 15, 14, 1, 6, 9, 8, 7, 3, 12, 13, 2, 5, 10, 11, 4},
{0, 15, 14, 1, 7, 8, 9, 6, 2, 13, 12, 3, 5, 10, 11, 4},
{0, 15, 13, 2, 6, 9, 11, 4, 3, 12, 14, 1, 5, 10, 8, 7},
{0, 15, 14, 1, 5, 10, 11, 4, 3, 12, 13, 2, 6, 9, 8, 7},
{0, 15, 13, 2, 5, 10, 8, 7, 3, 12, 14, 1, 6, 9, 11, 4},
{0, 15, 13, 2, 7, 8, 10, 5, 1, 14, 12, 3, 6, 9, 11, 4},
{0, 14, 11, 5, 7, 9, 12, 2, 3, 13, 8, 6, 4, 10, 15, 1},
{0, 15, 10, 5, 7, 8, 13, 2, 3, 12, 9, 6, 4, 11, 14, 1},
{0, 15, 11, 4, 6, 9, 13, 2, 3, 12, 8, 7, 5, 10, 14, 1},
{0, 15, 11, 4, 7, 8, 12, 3, 2, 13, 9, 6, 5, 10, 14, 1},
{0, 13, 11, 6, 7, 10, 12, 1, 3, 14, 8, 5, 4, 9, 15, 2},
{0, 15, 9, 6, 7, 8, 14, 1, 3, 12, 10, 5, 4, 11, 13, 2},
{0, 15, 11, 4, 5, 10, 14, 1, 3, 12, 8, 7, 6, 9, 13, 2},
{0, 15, 11, 4, 7, 8, 12, 3, 1, 14, 10, 5, 6, 9, 13, 2},
{0, 15, 7, 8, 6, 9, 1, 14, 5, 10, 2, 13, 3, 12, 4, 11},
{0, 15, 7, 8, 6, 9, 1, 14, 3, 12, 4, 11, 5, 10, 2, 13},
{0, 15, 7, 8, 5, 10, 2, 13, 3, 12, 4, 11, 6, 9, 1, 14},
{0, 15, 14, 1, 12, 3, 2, 13, 11, 4, 5, 10, 7, 8, 9, 6},
{0, 15, 14, 1, 13, 2, 3, 12, 10, 5, 4, 11, 7, 8, 9, 6},
{0, 15, 13, 2, 12, 3, 1, 14, 11, 4, 6, 9, 7, 8, 10, 5},
{0, 15, 14, 1, 13, 2, 3, 12, 9, 6, 7, 8, 4, 11, 10, 5},
{0, 15, 13, 2, 11, 4, 6, 9, 10, 5, 7, 8, 1, 14, 12, 3},
{0, 15, 14, 1, 11, 4, 5, 10, 9, 6, 7, 8, 2, 13, 12, 3},
{0, 15, 14, 1, 12, 3, 2, 13, 7, 8, 9, 6, 11, 4, 5, 10},
{0, 15, 14, 1, 13, 2, 3, 12, 6, 9, 8, 7, 11, 4, 5, 10},
{0, 15, 13, 2, 12, 3, 1, 14, 7, 8, 10, 5, 11, 4, 6, 9},
{0, 15, 14, 1, 13, 2, 3, 12, 5, 10, 11, 4, 8, 7, 6, 9},
{0, 15, 14, 1, 10, 5, 4, 11, 7, 8, 9, 6, 13, 2, 3, 12},
{0, 15, 14, 1, 11, 4, 5, 10, 6, 9, 8, 7, 13, 2, 3, 12},
{0, 14, 13, 3, 11, 5, 6, 8, 7, 9, 10, 4, 12, 2, 1, 15},
{0, 15, 13, 2, 9, 6, 4, 11, 7, 8, 10, 5, 14, 1, 3, 12},
{0, 15, 13, 2, 11, 4, 6, 9, 5, 10, 8, 7, 14, 1, 3, 12},
{0, 15, 11, 4, 10, 5, 1, 14, 7, 8, 12, 3, 13, 2, 6, 9},
{0, 15, 11, 4, 9, 6, 2, 13, 7, 8, 12, 3, 14, 1, 5, 10},
{0, 15, 14, 1, 11, 4, 5, 10, 3, 12, 13, 2, 8, 7, 6, 9},
{0, 15, 13, 2, 11, 4, 6, 9, 3, 12, 14, 1, 8, 7, 5, 10},
{0, 15, 13, 2, 7, 8, 10, 5, 6, 9, 11, 4, 1, 14, 12, 3},
{0, 15, 14, 1, 7, 8, 9, 6, 5, 10, 11, 4, 2, 13, 12, 3},
{0, 15, 11, 4, 7, 8, 12, 3, 6, 9, 13, 2, 1, 14, 10, 5},
{0, 15, 11, 4, 7, 8, 12, 3, 5, 10, 14, 1, 2, 13, 9, 6},
{0, 15, 14, 1, 7, 8, 9, 6, 3, 12, 13, 2, 4, 11, 10, 5},
{0, 15, 13, 2, 7, 8, 10, 5, 3, 12, 14, 1, 4, 11, 9, 6},
{0, 15, 14, 1, 13, 2, 3, 12, 11, 4, 5, 10, 6, 9, 8, 7},
{0, 15, 14, 1, 13, 2, 3, 12, 7, 8, 9, 6, 10, 5, 4, 11},
{0, 15, 14, 1, 11, 4, 5, 10, 7, 8, 9, 6, 12, 3, 2, 13},
{0, 15, 13, 2, 11, 4, 6, 9, 7, 8, 10, 5, 12, 3, 1, 14},
};
#endif //AFFINEMATRIXROWPEBOX_H__