-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
6154 lines (5954 loc) · 134 KB
/
index.html
File metadata and controls
6154 lines (5954 loc) · 134 KB
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
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mr0sim</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
background: #0f1117;
color: #e0e0e0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 60px 20px;
}
.container {
background: #1a1d27;
border: 1px solid #2a2d3a;
border-radius: 16px;
padding: 48px 56px;
max-width: 720px;
width: 100%;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
h1 {
text-align: center;
font-size: 1.8rem;
font-weight: 600;
color: #f0f0f0;
margin-bottom: 8px;
}
.subtitle {
text-align: center;
color: #888;
font-size: 0.95rem;
margin-bottom: 40px;
line-height: 1.5;
}
.section-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #666;
margin-bottom: 10px;
}
/* Meta chips */
.meta {
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
margin-bottom: 32px;
}
.chip {
background: rgba(255, 255, 255, 0.04);
border: 1px solid #2a2d3a;
padding: 6px 14px;
border-radius: 999px;
font-size: 0.78rem;
color: #888;
}
/* File picker */
.file-picker {
margin-bottom: 28px;
}
.file-picker-row {
display: flex;
align-items: center;
gap: 12px;
}
.btn-select-file {
background: #2c5fff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: background 0.15s;
white-space: nowrap;
}
.btn-select-file:hover {
background: #4070ff;
}
.btn-reset {
display: none;
color: #dc2626;
font-size: 0.82rem;
font-weight: 700;
cursor: pointer;
white-space: nowrap;
}
.btn-reset:hover {
color: #ef4444;
}
.btn-view {
background: transparent;
color: #888;
border: 1px solid #3a3d4a;
padding: 10px 18px;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: border-color 0.15s, color 0.15s;
white-space: nowrap;
}
.btn-view:hover {
border-color: #60a5fa;
color: #ccc;
}
/* Viewer overlay */
.overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
z-index: 1000;
justify-content: center;
align-items: center;
padding: 40px 20px;
}
.overlay.open {
display: flex;
}
.viewer {
background: #1a1d27;
border: 1px solid #2a2d3a;
border-radius: 14px;
width: 100%;
max-width: 800px;
height: 80vh;
display: flex;
flex-direction: column;
box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
}
.viewer-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
border-bottom: 1px solid #252836;
flex-shrink: 0;
}
.viewer-title {
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.85rem;
color: #aaa;
}
.btn-close {
background: transparent;
border: none;
color: #666;
font-size: 1.4rem;
cursor: pointer;
padding: 0 4px;
line-height: 1;
transition: color 0.15s;
}
.btn-close:hover {
color: #ef4444;
}
.viewer-editor {
flex: 1;
background: #12141c;
color: #cfeefd;
border: none;
border-radius: 0 0 14px 14px;
padding: 16px 20px;
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.8rem;
line-height: 1.6;
resize: none;
outline: none;
tab-size: 4;
}
.viewer-editor::placeholder {
color: #444;
}
.viewer-log {
flex: 1;
background: #12141c;
color: #cfeefd;
border: none;
border-radius: 0 0 14px 14px;
padding: 16px 20px;
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.8rem;
line-height: 1.6;
margin: 0;
overflow: auto;
white-space: pre-wrap;
word-break: break-all;
user-select: text;
}
.file-name {
color: #667;
font-size: 0.82rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-name.local-file {
color: #ccc;
}
input[type="file"] {
display: none;
}
/* Run button */
.run-section {
text-align: center;
margin-bottom: 24px;
}
/* Pipeline boxes */
.pipeline-boxes {
display: flex;
flex-direction: column;
gap: 0;
margin-bottom: 28px;
}
.pipeline-arrow {
display: flex;
justify-content: center;
padding: 4px 0;
color: #3a3d4a;
font-size: 0.85rem;
line-height: 1;
}
.pipeline-arrow::before {
content: "\25BC";
}
.tool-box {
background: #12141c;
border: 1px solid #252836;
border-radius: 10px;
overflow: hidden;
transition: border-color 0.3s;
cursor: pointer;
}
.tool-box.active {
border-color: #f59e0b;
}
.tool-box.done {
border-color: #10b981;
}
.tool-box.error {
border-color: #ef4444;
}
.tool-box:hover:not(.active):not(.done):not(.error) {
border-color: #3a3d4a;
}
.tool-box.done:hover {
border-color: #34d399;
}
.tool-box.active:hover {
border-color: #fbbf24;
}
.tool-box-header {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
border-bottom: 1px solid #1e2030;
background: #151822;
}
.tool-box-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.tool-box-dot.idle {
background: #3a3d4a;
}
.tool-box-dot.running {
background: #f59e0b;
animation: pulse 1.2s ease-in-out infinite;
}
.tool-box-dot.done {
background: #10b981;
}
.tool-box-dot.error {
background: #ef4444;
}
.tool-box-name {
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.82rem;
font-weight: 600;
color: #c8ccd4;
white-space: nowrap;
}
.tool-box-desc {
font-size: 0.72rem;
color: #555;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tool-box-time {
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.72rem;
color: #555;
white-space: nowrap;
}
.tool-box-body {
padding: 12px 16px;
min-height: 40px;
}
.tool-box-placeholder {
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.75rem;
color: #333;
}
.tool-box-status {
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.75rem;
color: #888;
}
.tool-box-detail {
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.75rem;
color: #667;
margin-top: 4px;
}
.tool-box-error {
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.75rem;
color: #ef4444;
}
.btn-run {
background: linear-gradient(135deg, #10b981, #059669);
color: #fff;
border: none;
padding: 14px 48px;
border-radius: 10px;
font-size: 1.05rem;
font-weight: 600;
cursor: pointer;
transition: opacity 0.15s, transform 0.1s;
letter-spacing: 0.02em;
}
.btn-run:hover {
opacity: 0.9;
transform: translateY(-1px);
}
.btn-run:active {
transform: translateY(0);
}
.btn-run:disabled {
background: #333;
cursor: not-allowed;
opacity: 0.6;
transform: none;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.4;
}
}
/* Reconstructed images — 2x2 grid */
.recon-canvas-wrap {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
padding: 20px;
}
.recon-panel {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
min-width: 0;
}
.recon-label {
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #666;
}
.recon-panel canvas {
image-rendering: pixelated;
border: 1px solid #2a2d3a;
border-radius: 4px;
width: 100%;
height: auto;
}
/* Signal line plot */
.signal-plot-wrap {
padding: 20px 20px 0 20px;
}
.signal-plot-wrap canvas {
width: 100%;
height: 140px;
border: 1px solid #2a2d3a;
border-radius: 4px;
}
.signal-legend {
display: flex;
justify-content: center;
gap: 16px;
padding-top: 6px;
}
.signal-legend-item {
display: flex;
align-items: center;
gap: 5px;
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.68rem;
color: #888;
}
.signal-legend-swatch {
width: 14px;
height: 3px;
border-radius: 1px;
}
/* Reconstruction output */
.recon-output {
background: #12141c;
border: 1px solid #252836;
border-radius: 10px;
overflow: hidden;
margin-bottom: 28px;
}
.recon-output-placeholder {
padding: 24px 16px;
text-align: center;
font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
font-size: 0.75rem;
color: #333;
}
/* Footer */
footer {
margin-top: 24px;
text-align: center;
font-size: 0.75rem;
color: #444;
}
footer a {
color: #666;
text-decoration: none;
}
footer a:hover {
color: #888;
}
</style>
</head>
<body>
<div class="container">
<!-- Title -->
<h1>mr0sim</h1>
<p class="subtitle">
<strong style="color:#bbb">rapi</strong>d <strong style="color:#bbb">sim</strong>ulation — parse a .seq
file, load a phantom, simulate the MR signal, and reconstruct the image.
</p>
<!-- Meta -->
<div class="meta">
<div class="chip">Language: Rust</div>
<div class="chip">Binary: tool-mr0sim</div>
<div class="chip">Region: fra</div>
<div class="chip">2x CPU @ 1 GB</div>
</div>
<!-- File picker -->
<div class="file-picker">
<div class="section-label">1. Select input</div>
<div class="file-picker-row">
<button class="btn-select-file" onclick="document.getElementById('seqFile').click()">
Select .seq file
</button>
<button class="btn-view" onclick="openViewer()">View</button>
<input type="file" id="seqFile" accept=".seq" onchange="onFileSelected(this)">
<span class="file-name" id="fileName">Included: gre.seq</span>
<span class="btn-reset" id="btnReset" onclick="resetToDemo()">reset</span>
</div>
<p style="font-size:0.78rem;color:#666;margin-top:12px;line-height:1.45;">
You can also pass a sequence via URL (same idea as
<a href="https://mrx-org.github.io/post_seq/" target="_blank" rel="noopener noreferrer" style="color:#888">post_seq</a>):
<code style="color:#9ab">#b64=…</code>,
<code style="color:#9ab">?url=https://…/file.seq</code> (needs CORS), or a short <code style="color:#9ab">?seq=…</code>.
</p>
</div>
<!-- Run button -->
<div class="run-section">
<button class="btn-run" id="btnRun" onclick="onRun()">Run Pipeline</button>
</div>
<!-- Pipeline: 4 tool output boxes -->
<div class="section-label">2. Pipeline</div>
<div class="pipeline-boxes">
<!-- Box 1: conseq -->
<div class="tool-box" id="boxConseq">
<div class="tool-box-header">
<div class="tool-box-dot idle" id="dotConseq"></div>
<div class="tool-box-name">tool-conseq</div>
<div class="tool-box-desc">parse .seq into instant events</div>
<div class="tool-box-time" id="timeConseq"></div>
</div>
<div class="tool-box-body" id="bodyConseq">
<div class="tool-box-placeholder">waiting</div>
</div>
</div>
<div class="pipeline-arrow"></div>
<!-- Box 2: phantomlib -->
<div class="tool-box" id="boxPhantom">
<div class="tool-box-header">
<div class="tool-box-dot idle" id="dotPhantom"></div>
<div class="tool-box-name">tool-phantomlib</div>
<div class="tool-box-desc">load BrainWeb phantom (72x87x1)</div>
<div class="tool-box-time" id="timePhantom"></div>
</div>
<div class="tool-box-body" id="bodyPhantom">
<div class="tool-box-placeholder">waiting</div>
</div>
</div>
<div class="pipeline-arrow"></div>
<!-- Box 3: mr0sim -->
<div class="tool-box" id="boxMr0sim">
<div class="tool-box-header">
<div class="tool-box-dot idle" id="dotMr0sim"></div>
<div class="tool-box-name">tool-mr0sim</div>
<div class="tool-box-desc">simulate MR signal</div>
<div class="tool-box-time" id="timeMr0sim"></div>
</div>
<div class="tool-box-body" id="bodyMr0sim">
<div class="tool-box-placeholder">waiting</div>
</div>
</div>
<div class="pipeline-arrow"></div>
<!-- Box 4: trajex -->
<div class="tool-box" id="boxTrajex">
<div class="tool-box-header">
<div class="tool-box-dot idle" id="dotTrajex"></div>
<div class="tool-box-name">tool-trajex</div>
<div class="tool-box-desc">extract k-space trajectory</div>
<div class="tool-box-time" id="timeTrajex"></div>
</div>
<div class="tool-box-body" id="bodyTrajex">
<div class="tool-box-placeholder">waiting</div>
</div>
</div>
</div>
<!-- Reconstruction output (rendered locally after pipeline) -->
<div class="section-label">3. Reconstruction</div>
<div class="recon-output" id="reconOutput">
<div class="recon-output-placeholder">run the pipeline to see results</div>
</div>
<!-- Footer -->
<footer>
<a href="https://fly.io/apps/tool-mr0sim" target="_blank" rel="noopener noreferrer">fly.io/apps/tool-mr0sim</a>
</footer>
</div>
<script type="text/plain" id="embeddedSeq"># Pulseq sequence file
# Created by PyPulseq
[VERSION]
major 1
minor 4
revision 0
[DEFINITIONS]
AdcRasterTime 1e-07
BlockDurationRaster 1e-05
FOV 0.256 0.256 0.003
GradientRasterTime 1e-05
Name gre
RadiofrequencyRasterTime 1e-06
TotalDuration 3.072
# Format of blocks:
# NUM DUR RF GX GY GZ ADC EXT
[BLOCKS]
1 317 1 0 0 1 0 0
2 100 0 2 3 4 0 0
3 78 0 0 0 0 0 0
4 330 0 5 0 0 1 0
5 375 0 6 7 8 0 0
6 317 2 0 0 1 0 0
7 100 0 2 9 4 0 0
8 78 0 0 0 0 0 0
9 330 0 5 0 0 2 0
10 375 0 6 10 8 0 0
11 317 3 0 0 1 0 0
12 100 0 2 11 4 0 0
13 78 0 0 0 0 0 0
14 330 0 5 0 0 3 0
15 375 0 6 12 8 0 0
16 317 4 0 0 1 0 0
17 100 0 2 13 4 0 0
18 78 0 0 0 0 0 0
19 330 0 5 0 0 4 0
20 375 0 6 14 8 0 0
21 317 5 0 0 1 0 0
22 100 0 2 15 4 0 0
23 78 0 0 0 0 0 0
24 330 0 5 0 0 5 0
25 375 0 6 16 8 0 0
26 317 6 0 0 1 0 0
27 100 0 2 17 4 0 0
28 78 0 0 0 0 0 0
29 330 0 5 0 0 6 0
30 375 0 6 18 8 0 0
31 317 7 0 0 1 0 0
32 100 0 2 19 4 0 0
33 78 0 0 0 0 0 0
34 330 0 5 0 0 7 0
35 375 0 6 20 8 0 0
36 317 8 0 0 1 0 0
37 100 0 2 21 4 0 0
38 78 0 0 0 0 0 0
39 330 0 5 0 0 8 0
40 375 0 6 22 8 0 0
41 317 9 0 0 1 0 0
42 100 0 2 23 4 0 0
43 78 0 0 0 0 0 0
44 330 0 5 0 0 9 0
45 375 0 6 24 8 0 0
46 317 10 0 0 1 0 0
47 100 0 2 25 4 0 0
48 78 0 0 0 0 0 0
49 330 0 5 0 0 10 0
50 375 0 6 26 8 0 0
51 317 6 0 0 1 0 0
52 100 0 2 27 4 0 0
53 78 0 0 0 0 0 0
54 330 0 5 0 0 6 0
55 375 0 6 28 8 0 0
56 317 11 0 0 1 0 0
57 100 0 2 29 4 0 0
58 78 0 0 0 0 0 0
59 330 0 5 0 0 11 0
60 375 0 6 30 8 0 0
61 317 12 0 0 1 0 0
62 100 0 2 31 4 0 0
63 78 0 0 0 0 0 0
64 330 0 5 0 0 12 0
65 375 0 6 32 8 0 0
66 317 13 0 0 1 0 0
67 100 0 2 33 4 0 0
68 78 0 0 0 0 0 0
69 330 0 5 0 0 13 0
70 375 0 6 34 8 0 0
71 317 14 0 0 1 0 0
72 100 0 2 35 4 0 0
73 78 0 0 0 0 0 0
74 330 0 5 0 0 14 0
75 375 0 6 36 8 0 0
76 317 1 0 0 1 0 0
77 100 0 2 37 4 0 0
78 78 0 0 0 0 0 0
79 330 0 5 0 0 1 0
80 375 0 6 38 8 0 0
81 317 15 0 0 1 0 0
82 100 0 2 39 4 0 0
83 78 0 0 0 0 0 0
84 330 0 5 0 0 15 0
85 375 0 6 40 8 0 0
86 317 16 0 0 1 0 0
87 100 0 2 41 4 0 0
88 78 0 0 0 0 0 0
89 330 0 5 0 0 16 0
90 375 0 6 42 8 0 0
91 317 13 0 0 1 0 0
92 100 0 2 43 4 0 0
93 78 0 0 0 0 0 0
94 330 0 5 0 0 13 0
95 375 0 6 44 8 0 0
96 317 17 0 0 1 0 0
97 100 0 2 45 4 0 0
98 78 0 0 0 0 0 0
99 330 0 5 0 0 17 0
100 375 0 6 46 8 0 0
101 317 5 0 0 1 0 0
102 100 0 2 47 4 0 0
103 78 0 0 0 0 0 0
104 330 0 5 0 0 5 0
105 375 0 6 48 8 0 0
106 317 18 0 0 1 0 0
107 100 0 2 49 4 0 0
108 78 0 0 0 0 0 0
109 330 0 5 0 0 18 0
110 375 0 6 50 8 0 0
111 317 19 0 0 1 0 0
112 100 0 2 51 4 0 0
113 78 0 0 0 0 0 0
114 330 0 5 0 0 19 0
115 375 0 6 52 8 0 0
116 317 9 0 0 1 0 0
117 100 0 2 53 4 0 0
118 78 0 0 0 0 0 0
119 330 0 5 0 0 9 0
120 375 0 6 54 8 0 0
121 317 20 0 0 1 0 0
122 100 0 2 55 4 0 0
123 78 0 0 0 0 0 0
124 330 0 5 0 0 20 0
125 375 0 6 56 8 0 0
126 317 10 0 0 1 0 0
127 100 0 2 57 4 0 0
128 78 0 0 0 0 0 0
129 330 0 5 0 0 10 0
130 375 0 6 58 8 0 0
131 317 18 0 0 1 0 0
132 100 0 2 59 4 0 0
133 78 0 0 0 0 0 0
134 330 0 5 0 0 18 0
135 375 0 6 60 8 0 0
136 317 21 0 0 1 0 0
137 100 0 2 61 4 0 0
138 78 0 0 0 0 0 0
139 330 0 5 0 0 21 0
140 375 0 6 62 8 0 0
141 317 4 0 0 1 0 0
142 100 0 2 63 4 0 0
143 78 0 0 0 0 0 0
144 330 0 5 0 0 4 0
145 375 0 6 64 8 0 0
146 317 22 0 0 1 0 0
147 100 0 2 65 4 0 0
148 78 0 0 0 0 0 0
149 330 0 5 0 0 22 0
150 375 0 6 66 8 0 0
151 317 14 0 0 1 0 0
152 100 0 2 67 4 0 0
153 78 0 0 0 0 0 0
154 330 0 5 0 0 14 0
155 375 0 6 68 8 0 0
156 317 15 0 0 1 0 0
157 100 0 2 69 4 0 0
158 78 0 0 0 0 0 0
159 330 0 5 0 0 15 0
160 375 0 6 70 8 0 0
161 317 23 0 0 1 0 0
162 100 0 2 71 4 0 0
163 78 0 0 0 0 0 0
164 330 0 5 0 0 23 0
165 375 0 6 72 8 0 0
166 317 2 0 0 1 0 0
167 100 0 2 73 4 0 0
168 78 0 0 0 0 0 0
169 330 0 5 0 0 2 0
170 375 0 6 74 8 0 0
171 317 22 0 0 1 0 0
172 100 0 2 75 4 0 0
173 78 0 0 0 0 0 0
174 330 0 5 0 0 22 0
175 375 0 6 76 8 0 0
176 317 17 0 0 1 0 0
177 100 0 2 77 4 0 0
178 78 0 0 0 0 0 0
179 330 0 5 0 0 17 0
180 375 0 6 78 8 0 0
181 317 11 0 0 1 0 0
182 100 0 2 79 4 0 0
183 78 0 0 0 0 0 0
184 330 0 5 0 0 11 0
185 375 0 6 80 8 0 0
186 317 24 0 0 1 0 0
187 100 0 2 81 4 0 0
188 78 0 0 0 0 0 0
189 330 0 5 0 0 24 0
190 375 0 6 82 8 0 0
191 317 7 0 0 1 0 0
192 100 0 2 83 4 0 0
193 78 0 0 0 0 0 0
194 330 0 5 0 0 7 0
195 375 0 6 84 8 0 0
196 317 20 0 0 1 0 0
197 100 0 2 85 4 0 0
198 78 0 0 0 0 0 0
199 330 0 5 0 0 20 0
200 375 0 6 86 8 0 0
201 317 20 0 0 1 0 0
202 100 0 2 87 4 0 0
203 78 0 0 0 0 0 0
204 330 0 5 0 0 20 0
205 375 0 6 88 8 0 0
206 317 7 0 0 1 0 0
207 100 0 2 89 4 0 0
208 78 0 0 0 0 0 0
209 330 0 5 0 0 7 0
210 375 0 6 90 8 0 0
211 317 24 0 0 1 0 0
212 100 0 2 91 4 0 0
213 78 0 0 0 0 0 0
214 330 0 5 0 0 24 0
215 375 0 6 92 8 0 0
216 317 11 0 0 1 0 0
217 100 0 2 93 4 0 0
218 78 0 0 0 0 0 0
219 330 0 5 0 0 11 0
220 375 0 6 94 8 0 0
221 317 17 0 0 1 0 0
222 100 0 2 95 4 0 0
223 78 0 0 0 0 0 0
224 330 0 5 0 0 17 0
225 375 0 6 96 8 0 0
226 317 22 0 0 1 0 0
227 100 0 2 97 4 0 0
228 78 0 0 0 0 0 0
229 330 0 5 0 0 22 0
230 375 0 6 98 8 0 0
231 317 2 0 0 1 0 0
232 100 0 2 99 4 0 0
233 78 0 0 0 0 0 0
234 330 0 5 0 0 2 0
235 375 0 6 100 8 0 0
236 317 23 0 0 1 0 0
237 100 0 2 101 4 0 0
238 78 0 0 0 0 0 0
239 330 0 5 0 0 23 0
240 375 0 6 102 8 0 0
241 317 15 0 0 1 0 0
242 100 0 2 103 4 0 0
243 78 0 0 0 0 0 0
244 330 0 5 0 0 15 0
245 375 0 6 104 8 0 0
246 317 14 0 0 1 0 0
247 100 0 2 105 4 0 0
248 78 0 0 0 0 0 0
249 330 0 5 0 0 14 0
250 375 0 6 106 8 0 0
251 317 22 0 0 1 0 0
252 100 0 2 107 4 0 0
253 78 0 0 0 0 0 0
254 330 0 5 0 0 22 0
255 375 0 6 108 8 0 0
256 317 4 0 0 1 0 0
257 100 0 2 109 4 0 0
258 78 0 0 0 0 0 0
259 330 0 5 0 0 4 0
260 375 0 6 110 8 0 0
261 317 21 0 0 1 0 0
262 100 0 2 111 4 0 0
263 78 0 0 0 0 0 0
264 330 0 5 0 0 21 0
265 375 0 6 112 8 0 0
266 317 18 0 0 1 0 0
267 100 0 2 113 4 0 0
268 78 0 0 0 0 0 0
269 330 0 5 0 0 18 0
270 375 0 6 114 8 0 0
271 317 10 0 0 1 0 0
272 100 0 2 115 4 0 0
273 78 0 0 0 0 0 0
274 330 0 5 0 0 10 0
275 375 0 6 116 8 0 0
276 317 20 0 0 1 0 0
277 100 0 2 117 4 0 0
278 78 0 0 0 0 0 0
279 330 0 5 0 0 20 0
280 375 0 6 118 8 0 0
281 317 9 0 0 1 0 0
282 100 0 2 119 4 0 0
283 78 0 0 0 0 0 0
284 330 0 5 0 0 9 0
285 375 0 6 120 8 0 0
286 317 19 0 0 1 0 0
287 100 0 2 121 4 0 0
288 78 0 0 0 0 0 0
289 330 0 5 0 0 19 0
290 375 0 6 122 8 0 0
291 317 18 0 0 1 0 0
292 100 0 2 123 4 0 0
293 78 0 0 0 0 0 0
294 330 0 5 0 0 18 0
295 375 0 6 124 8 0 0
296 317 5 0 0 1 0 0
297 100 0 2 125 4 0 0
298 78 0 0 0 0 0 0
299 330 0 5 0 0 5 0
300 375 0 6 126 8 0 0
301 317 17 0 0 1 0 0
302 100 0 2 127 4 0 0
303 78 0 0 0 0 0 0
304 330 0 5 0 0 17 0
305 375 0 6 128 8 0 0
306 317 13 0 0 1 0 0
307 100 0 2 129 4 0 0
308 78 0 0 0 0 0 0
309 330 0 5 0 0 13 0
310 375 0 6 130 8 0 0
311 317 16 0 0 1 0 0
312 100 0 2 131 4 0 0
313 78 0 0 0 0 0 0
314 330 0 5 0 0 16 0
315 375 0 6 132 8 0 0
316 317 15 0 0 1 0 0
317 100 0 2 133 4 0 0
318 78 0 0 0 0 0 0
319 330 0 5 0 0 15 0
320 375 0 6 134 8 0 0
321 317 1 0 0 1 0 0
322 100 0 2 135 4 0 0
323 78 0 0 0 0 0 0