Petra Lamborn 1 year ago
parent
commit
ec4abc2510
2 changed files with 897 additions and 0 deletions
  1. 16
    0
      5.R
  2. 881
    0
      input5.txt

+ 16
- 0
5.R View File

@@ -0,0 +1,16 @@
1
+library(stringr)
2
+input <- readLines("input5.txt")
3
+im <- str_match(input, "^([BF])([BF])([BF])([BF])([BF])([BF])([BF])([RL])([RL])([RL])$")
4
+
5
+rowspec <- apply(im[,2:8], c(1,2), function(x) {x == "B"})
6
+colspec <- apply(im[,9:11], c(1,2), function(x) {x == "R"})
7
+rownums <- as.vector(rowspec%*%(2^((ncol(rowspec)-1):0)))
8
+colnums <- as.vector(colspec%*%(2^((ncol(colspec)-1):0)))
9
+id <- rownums * 8 + colnums
10
+
11
+# Part a
12
+max(id)
13
+
14
+# Part b
15
+idl <- sort(id)
16
+idl[which.max(diff(idl))] + 1

+ 881
- 0
input5.txt View File

@@ -0,0 +1,881 @@
1
+FBBFBBBRLR
2
+BFFBBFFLLL
3
+BFFBBBBRRR
4
+BBBFBBFRLL
5
+FFBFFFFLRL
6
+FFBFBBBLLL
7
+BFFBBFBLLL
8
+FBFFFFBLLL
9
+FBBBBBBRLL
10
+BBFFBBFLLR
11
+FFBFBBBLRL
12
+FFBBBBFLLL
13
+FBBFFBBRLL
14
+BFBFFFFRLR
15
+BFBBFBBLLL
16
+FBFFBBBRRR
17
+BBFBFBFLRR
18
+FFBBFFFRRR
19
+BBFFBBFLRL
20
+FBFBBBBLRR
21
+BFFFBFBLRL
22
+FBFFBFFLLR
23
+FFFBFBBRLR
24
+BFFBBBFRLR
25
+BFFBFFFLLR
26
+FFBBBFFLLL
27
+BBBFBBFRRL
28
+BBFBFBFRLR
29
+BFBFFBBRRL
30
+BFFFFFFRLR
31
+FBFBFBBLLL
32
+BFFFBBFRLR
33
+FBFBBBBRRR
34
+BFBFBFBRLR
35
+BBBFFBBLRL
36
+FBFFBFBRLR
37
+FBBBBBFLLR
38
+FFBBBFBRRL
39
+BFFBBFBRLL
40
+BBFFBFFLLL
41
+BFBFBBBLRL
42
+FFBBBFBRRR
43
+FFBBBBBRLL
44
+BFBFBBFLRR
45
+FFBFFBBLRR
46
+BBBFBFFLRL
47
+BBFBBBFLLL
48
+BFBBFFFRLL
49
+FBFBFBFRRR
50
+BBFFBFFLRR
51
+FBFBFBBRRL
52
+BBFFBFFRLR
53
+BBFFFFBRRL
54
+FBFBBBFRLL
55
+BFFFBBFRRR
56
+BFBFBFFLLL
57
+BBFBBFFRRR
58
+FFBBFFBLRR
59
+BFBBFBBRLR
60
+FFFBFBBLLR
61
+FBBFBBFLLR
62
+BBBFBFBRRL
63
+BFBBBFFRLR
64
+BBBFBFBRLL
65
+BBFBBBFLLR
66
+BBFFBFFRRL
67
+FFBFBBBLLR
68
+FFBFBBFLRR
69
+FBBFFBFRLL
70
+BBBFFFBLLL
71
+BBFBFBBLLL
72
+BFFBFBBLRL
73
+BBFFBFBRRR
74
+FFFBFBBRRR
75
+FBFBFFFRRR
76
+FFFBBBBRRR
77
+BFFBBFFRRL
78
+FFBBBFBLRL
79
+BFBBFBFLRL
80
+FFFBBFFLLL
81
+FBBBBFBLLR
82
+FBBBFFBLRL
83
+FBFBFFBLRR
84
+FFBFBFFLLR
85
+BFFFFFFLRL
86
+BFFFBBBLRR
87
+BBBFBFFLLL
88
+BFFFBBFRLL
89
+FBFFFFFRRR
90
+BBFFBBFRLR
91
+FBBFFFFRLL
92
+FBBFBFFLLR
93
+FBBFFFFRLR
94
+BBFFBBBRLL
95
+BFFBFFFRLR
96
+FFBBFBBLLL
97
+BFBFBFBRRL
98
+BFFFBBFLRL
99
+FFBBFFBLRL
100
+FBFFFFFRLR
101
+BFFBBBBRLL
102
+BBFBBBFRLL
103
+BBBFFBFRRR
104
+FBBBBBFLRL
105
+FFBFBBFRRR
106
+BFFFFFBLRL
107
+FBFBFFFRLL
108
+BFFFBBBRLR
109
+BFFFBBBRRR
110
+FFBBBBBRLR
111
+BFFFBBFLLR
112
+BFBBBFBLRR
113
+BBFFFFFLRR
114
+FBBFFBFRRL
115
+FFBBBBBLLL
116
+FBBBBFBLRL
117
+BFBFFBBRLR
118
+BFFFFBBRRL
119
+BBFBBBBRRL
120
+BFFFFBFLRL
121
+BBFFFBBLLR
122
+FBFFFFBRLL
123
+FBBBFBBRRL
124
+FFBFBBBRLR
125
+BFFFBFBRLR
126
+BFBFFBFLLR
127
+BBFBFFFRRL
128
+FBBBFBFRRL
129
+BFBFBBFRLL
130
+FBBBFFFLLL
131
+BBFBBFFRLL
132
+BFBBBBFRRL
133
+BBFFFBFLRR
134
+BFFBFFBLRL
135
+FBBBFFBRRL
136
+BBBFFFBRLR
137
+BFBBFBBRRL
138
+FFBBFBBRRL
139
+FBBFBBFRRL
140
+BBFBFFBRRR
141
+BFBBFFFLLL
142
+BFFBBBFLLR
143
+FBBBBFBRRL
144
+BBFBFBFLLL
145
+BFBFBBFLLR
146
+BBFFFBBRLR
147
+BBFFFBBRRR
148
+FFBFFBBRLR
149
+FFBFFBFRRL
150
+BBFFBBBLRR
151
+FBBBFFBLRR
152
+FBBBFBFRLR
153
+FBFBBFBLRR
154
+BFFBBFFLLR
155
+BBFBBFBRLL
156
+FFBFFBBLLL
157
+FBFBBBBRLR
158
+FBFFFFFLRL
159
+BFFBFFFLRL
160
+BBFFFFFRLR
161
+FBBBBBBLLL
162
+BFFBBFFLRL
163
+FFFBBBBLLR
164
+FFFBBFBRRL
165
+BFFBBBFLRR
166
+FBBFFFFLRR
167
+FBBFBBBLLL
168
+FFFBFBFRLR
169
+FFBBBBFRRL
170
+BFBFFBBRLL
171
+FFBBFBFLLL
172
+BBFFFFBRRR
173
+BFFFBFFLLR
174
+FFBFFBFLLR
175
+FFBFFFFRLL
176
+FBFBBBFRRL
177
+BBFFFBFLLL
178
+FBFBFFFLLR
179
+BFBBBFFLLR
180
+BBBFBBFLLL
181
+BBBFBFFRRR
182
+BBFBFBFLRL
183
+FBBFFBBRLR
184
+BBFBFFFLRR
185
+FBFBBFFLRR
186
+BFFBBBFLRL
187
+BFFBFBFRLR
188
+FBFBFFFRRL
189
+BFBBBBBRRR
190
+BFBFBFBLRL
191
+FFFBBFFLRL
192
+BBBFBFBLRR
193
+FFBFFFFLLL
194
+FBBFBFBRRL
195
+BBFBFFFLLL
196
+FFFBFBFLLR
197
+BFFFBFFRRR
198
+FBBBFFFRRL
199
+BFFBBBFRLL
200
+FBBBFFBRLR
201
+FBFBBFBLLL
202
+BBBFFFFLRL
203
+FBFFBFFRRL
204
+BBFFFFFLLL
205
+BBFFFFFLRL
206
+FBFFBFBRRR
207
+FFBFFFBLRL
208
+FBFFFFFRLL
209
+BFBFBFFRRR
210
+BFFBBBBLLR
211
+FFFBFBBRRL
212
+FFBFBFFRRL
213
+FBBBFFFLRR
214
+BBFBFBFRRL
215
+FFBFBFFRRR
216
+BBFFFFBLLL
217
+FBBFBFBRLR
218
+FFBFFBFRRR
219
+BBBFBBBLRL
220
+BFBBFBFRRR
221
+BBBFFFBLRR
222
+FBBBBBFRLR
223
+BFBFFBFRRR
224
+BFBBFFBLRR
225
+FFBFFBBRRR
226
+FBBFFBFRLR
227
+BFBBFFBRRL
228
+BBBFBBBRLR
229
+BBBFBBBLRR
230
+BFBFFBFRLR
231
+FBBBFBBRRR
232
+BFBFFBBLRL
233
+BBFFFBBRLL
234
+FBBFFFFLLR
235
+FFBFBBFLLR
236
+BFFFFFBLLL
237
+BFBFBFFLRR
238
+BFFBBFBRRL
239
+FBBBFFFRLL
240
+FBFBFFBLRL
241
+FFFBFFBRRL
242
+BFFFFFFLLL
243
+FFBBFFFRLL
244
+FFBBBFBLRR
245
+FFBBFFFRRL
246
+FFFBBBFRRR
247
+FFBFFBBRLL
248
+BFFFFFFRLL
249
+BBFFFBFLRL
250
+FFBBFBBLLR
251
+FBFBBBBLLL
252
+FBBFFBFLLR
253
+BFFBBFFRLR
254
+BFFBFFBLLL
255
+FFBBFBBLRR
256
+BBFBBFFRRL
257
+FBBFFBBLRR
258
+FBBFBFFLLL
259
+BBBFFFBRRL
260
+BFBBFFFLRR
261
+BBBFBBBLLL
262
+FBBBFBFRRR
263
+BFFBBBFRRR
264
+BBBFFFBLRL
265
+BFBFFFBLRL
266
+BFFBFBBLRR
267
+BBBFFBBRRR
268
+BBFBBFFRLR
269
+FFFBBBBLRL
270
+BBFFBBBLRL
271
+FFFBFBFLRL
272
+FFBFBBBRRR
273
+BFFFFFFLLR
274
+FBFBBBBRLL
275
+FBBBFFFRRR
276
+BFBFFBBLLL
277
+BFBFBFFLRL
278
+BBFFFBFLLR
279
+FBBFFFBRLR
280
+FFFBBBFLRR
281
+BFFFFBFRRR
282
+BBFFBBFRRL
283
+BFBFFBFLRL
284
+FBBBFBFLLL
285
+FBBFFBFLRL
286
+BBFBBFBLRL
287
+BBBFBBFLLR
288
+BBFBFFBLRR
289
+FBFBBBFRLR
290
+BBBFBFFLLR
291
+FBBFFBBLLL
292
+BBFFFBBLRR
293
+BFBFBBBLLR
294
+BBFFBBBRLR
295
+FFFBFBBLLL
296
+FBFBBFBRLL
297
+BBFBFFBRRL
298
+BBFFFFBRLL
299
+BFBFFBBLRR
300
+BBFBBBFLRL
301
+FBFFFFBRLR
302
+FBFBFFBRRR
303
+BFBBBBFRRR
304
+BBFFBFFLRL
305
+FBFFFFFRRL
306
+FBFFFFBLLR
307
+BFFBBFBLRR
308
+BBBFFBFLLL
309
+FBFFBFBLRR
310
+FFBBFBFRLR
311
+BBFBFBFRRR
312
+BBFBFBFRLL
313
+FBBBFBBLRL
314
+BBBFFFFRRR
315
+FBBBBBFLLL
316
+BBFFBBBRRR
317
+BFFFFBBRLR
318
+FFBBFBBRLL
319
+BBFBFBBLRL
320
+BFFBFFBLRR
321
+FBBFFFBRLL
322
+FFFBBFBRLR
323
+BBBFFBFLLR
324
+BBFFFFBRLR
325
+BFFBBFFRRR
326
+FFBFFBFRLR
327
+FBBFFFFRRL
328
+BFBBBFFRRL
329
+BFFBFBFLRR
330
+FBBBFBBRLL
331
+FBFFBBFRRL
332
+BFFFBFFLRL
333
+FFFBBFFRRR
334
+BBFFFFBLLR
335
+BFFBFBBRLL
336
+BFFFBFBLLR
337
+BBBFBBFLRR
338
+FFBFBFFLRL
339
+BFFBFFBRLL
340
+FBBBFBBLLL
341
+BFBBFBFLLL
342
+FBFBBFFRLL
343
+BFBFFFFLRR
344
+FFBBFFBRRL
345
+FBFBFBBLRR
346
+FFFBFBBRLL
347
+FBBFFBBRRR
348
+FBFBBBBLLR
349
+FBBFBFBLRR
350
+BFFFFFBRLR
351
+BFBBFBBRRR
352
+BFBBBBBLLR
353
+FFFBBFBLLR
354
+FBBFFBBLRL
355
+FFFBFBFRRL
356
+BFFFFBFLLL
357
+FBBBBBBRLR
358
+FFBBBFFLLR
359
+BFBBBBFRLL
360
+FFBFBFFLRR
361
+BFFBBFBLLR
362
+FBFBFBBRLR
363
+BBBFFFFLLR
364
+FFBBBBFLLR
365
+BFBBFFBRRR
366
+BBFBBFFLLL
367
+BFBBBBFRLR
368
+FFFBBFFLRR
369
+FFBFBBBRLL
370
+BFBBFFBLRL
371
+BFFBBBFRRL
372
+FFFBFBFLRR
373
+BFFFBBBRLL
374
+BBBFBFBRLR
375
+FBFFBBBRRL
376
+FFBBBBFLRR
377
+BFBBFBFRLL
378
+BFBBBFFRRR
379
+BBBFFBFRRL
380
+BBFBFFFRLL
381
+FFBFBFBRLL
382
+FBBFBBFLRL
383
+FFBBFFFRLR
384
+FBBFFBBRRL
385
+FBBBBFBLRR
386
+BFFFBFFRRL
387
+BFFFFBFRRL
388
+BFBFBFBRLL
389
+BFFBFBFRLL
390
+FBFBBFBRRL
391
+FFFBBFFRLL
392
+BFFFFBFLRR
393
+BFBBBBFLRR
394
+BBFBFBBRRR
395
+FBBBBBFRRR
396
+BFBBBFFLLL
397
+BFBBBFBRRR
398
+FBFBBFFRRL
399
+BBFBBBBLLR
400
+BFBBFFBLLR
401
+BFBBFBFLRR
402
+FBFBBFFLLR
403
+BFBFFFFLLR
404
+BFFFBFBRRR
405
+FBFBBFFLLL
406
+FBFBFBFRLL
407
+BBFBFFBLRL
408
+BBBFFFFRRL
409
+BFFFFBBLLR
410
+FFFBBBBRLR
411
+BFFFBFFLLL
412
+BFFFBFFRLL
413
+BFBFFBFRRL
414
+FFBFBFBLRL
415
+FFBFFFFRLR
416
+BFFBBBFLLL
417
+FBFFFBFRRL
418
+BBFFBBBLLR
419
+BFFBFFFRRR
420
+BFBFFFBRLL
421
+FFBFFBFLLL
422
+BBFBBFBRRL
423
+BBFBFBBRRL
424
+BFBBFFBRLR
425
+BBFFFBFRLR
426
+BBBFFFBLLR
427
+BFFBBFBRLR
428
+BBFBFBBLLR
429
+BBFFBBBRRL
430
+FFFBBBFLRL
431
+BFFBFFFRLL
432
+FBFBFFFLRL
433
+FBFBBBFLRL
434
+BFBFFBFLLL
435
+BFBFFFBLRR
436
+BFBFFFFLRL
437
+FBBBBFFLRL
438
+BFFBFFBRRL
439
+BFBBBBBLRL
440
+BFBFBBBRLL
441
+BBBFFBBLLL
442
+FBBFBBBRRR
443
+FFBBFFFLRR
444
+FBBFFFFLRL
445
+BBBFBFFLRR
446
+BFBFBBFRLR
447
+BBFBBFBRLR
448
+FBFBFFBLLR
449
+BFBFBBBRRL
450
+BBFFBFBLLL
451
+FBFFFFBLRL
452
+FFBFBBFLLL
453
+FBFFBFFLRR
454
+BFFFFBFLLR
455
+FFBFFFBRLL
456
+FBFBBBBRRL
457
+FFBFFFBLLL
458
+BFBBFFBLLL
459
+FFBBFFFLRL
460
+FBFFFBFLRL
461
+FBBBBBBLRL
462
+BBBFFBBLRR
463
+FBFBFBFRLR
464
+BFBFBFFRLL
465
+BFFFBBBLRL
466
+BFFFBFBRRL
467
+BBFFBBBLLL
468
+FBFFFBBLRR
469
+BFFBFBFRRL
470
+BFFFBFBLLL
471
+FBFBBFBRRR
472
+BFBFBBFRRR
473
+BBBFBFFRLL
474
+FBBFFBFLRR
475
+FFBBBFBLLL
476
+BFBBBFFLRR
477
+FFBBBFFRLR
478
+BFFFBFFLRR
479
+FFBBBFFRLL
480
+FFBFBFBLLR
481
+FBFFBFBLRL
482
+FBFFFBBRRR
483
+FFBFFFBLLR
484
+FFBFFFBRLR
485
+BFBFFBBLLR
486
+BFBBBFBRLR
487
+BFFBBBBLRL
488
+BFBFFFBRRL
489
+FBFFFBBLLL
490
+BFFFFFFRRL
491
+BBBFFBFLRL
492
+FFFBBFBLRR
493
+FBFFBBFRLL
494
+BBFFBFBLRL
495
+BBFBBFFLLR
496
+FBBBFBFLRL
497
+BBBFFBBLLR
498
+FBBFFFBLRR
499
+BFFFBBBRRL
500
+BFBBFFFRLR
501
+FFBFBBFLRL
502
+BFFBBBBLLL
503
+FBBBBBBRRL
504
+FBFFBFFRLR
505
+FBFFBFFLRL
506
+BFFBBFBLRL
507
+FBFFBBFLLR
508
+BBFFFFBLRR
509
+FBBFFBFRRR
510
+BFFBFFBRLR
511
+FBBBBBFLRR
512
+BFBFFBFRLL
513
+FBFFBFBLLR
514
+FBFBBFBRLR
515
+BBBFFFFRLR
516
+FFFBFFBRRR
517
+BBFFFBFRRL
518
+BFBFBBFLRL
519
+FBBFBBFRLL
520
+FFFBBBBLRR
521
+BFBBFBBLLR
522
+BFBFFFBLLR
523
+FBBFBBBRRL
524
+BFBFFFFLLL
525
+FBFFFBFLLL
526
+BBFFFBFRRR
527
+FBFFBBBRLL
528
+FBFFBFBRLL
529
+FFBBFBFLRR
530
+FFFBBBFRRL
531
+FBBFBFFLRR
532
+FBFFBBBLRL
533
+BFBBFFFRRR
534
+FBBFBFBRLL
535
+FBFFBBBLRR
536
+FFBBBFBLLR
537
+BFBFBFFRLR
538
+BFFBFBBLLR
539
+FBFFBFBLLL
540
+FBBBFBFLLR
541
+BFFFFBBLLL
542
+FFBBBBFLRL
543
+BFBBFBFLLR
544
+BFFBFFBRRR
545
+FBFBBFFRLR
546
+FBFBBBFLRR
547
+FBBFFFBRRL
548
+BBFFBFBRLR
549
+BFBFFBBRRR
550
+BBFFBFFLLR
551
+BBBFFFFLLL
552
+FFBFBFFRLL
553
+BFFBFBFRRR
554
+FBBBBFBLLL
555
+FBFBFBFLRR
556
+FBFBBFBLLR
557
+BFFFBBBLLL
558
+FBBFFFBRRR
559
+FBBBBFFRRR
560
+FFFBBFFRRL
561
+FFBBBFFRRR
562
+FBBFBBFLLL
563
+BBBFBFFRRL
564
+BBFFBFBRLL
565
+FBFFFFBLRR
566
+FFBFFBFLRR
567
+FBBBFBFLRR
568
+BFBBBBFLRL
569
+FFBBFBFLLR
570
+FFBBFFBRLR
571
+BFBFBBBRLR
572
+BFBFFBFLRR
573
+FBBFBFBLRL
574
+FFFBBFBRRR
575
+BFFFFFFLRR
576
+BBFBFFBRLR
577
+FBBBFFFRLR
578
+FBBFBFFRLL
579
+FBFBBBFRRR
580
+FBFFBBFRRR
581
+BBFBBFBLLR
582
+FBFFFBBRRL
583
+BFBFBBFLLL
584
+FBFFFBFRRR
585
+FBFBFBBRLL
586
+FFBBFFBRLL
587
+FBBBFBBRLR
588
+FBBBFBBLLR
589
+BFBBFBFRRL
590
+FBFFBBFRLR
591
+FBBFBFFRRL
592
+BFBFBBBLLL
593
+BFBBBFBLRL
594
+BFFFFBBLRR
595
+BFBBBFFLRL
596
+FBFFFBBRLR
597
+FFBFFFFRRR
598
+FBBFBFFLRL
599
+BFBFFFFRRL
600
+BFBBFFFRRL
601
+BFBFBFBLLR
602
+BBFFFBFRLL
603
+BFBBBBFLLL
604
+BFFBBBBRLR
605
+FBBBBBBRRR
606
+BFFFFBBRLL
607
+BBBFBBBRRL
608
+BFFBFFFRRL
609
+FBFBBBBLRL
610
+BBFBBFBLLL
611
+FBFFFBFRLR
612
+FBFFFBFLRR
613
+BBBFBBFRLR
614
+FFBBBBFRRR
615
+FBFBFBFLLR
616
+FBBBFFFLRL
617
+FFBFBFBLLL
618
+BFFBFBFLRL
619
+BFFBFBBRRR
620
+FBBFFFFLLL
621
+BBFBBBBLRL
622
+FFFBFBFRLL
623
+FFBBBFBRLR
624
+BFBBBFBLLR
625
+BFBBBBBRLL
626
+FBFFBBFLRR
627
+BFBBBBBLLL
628
+FBBFBFFRRR
629
+FBBBBBBLRR
630
+BFBBFBFRLR
631
+BBFFFFFLLR
632
+BBFBBFBLRR
633
+BFFFFFBRLL
634
+FFBBFBBLRL
635
+FBFBFBBLLR
636
+BBFBFBBRLL
637
+BFFFFBFRLL
638
+FFFBBFFLLR
639
+BBBFBFFRLR
640
+BFBBBFFRLL
641
+FBBFBBFLRR
642
+BFBFBFBLLL
643
+BFFBBBBRRL
644
+BBFBBBFRRL
645
+FFBBBBBLRR
646
+FFBBBFBRLL
647
+BFBBFBBRLL
648
+FBBBFBBLRR
649
+FFFBFBBLRR
650
+BBFBFFFRRR
651
+BFBFBFFLLR
652
+BFFFBFBRLL
653
+BBFFBFFRLL
654
+FFBFFBFLRL
655
+FBBBBFFRLL
656
+FFBFBFBRRR
657
+BBFBBBBLLL
658
+BBFFBFBLRR
659
+FFBBFFBRRR
660
+FBBFFFFRRR
661
+FFBFFBBLLR
662
+FBFBFBBRRR
663
+FFFBFBFLLL
664
+FFBBFBFRRL
665
+BFFFBBFRRL
666
+FBFBFFBRRL
667
+FFBBFFFLLR
668
+BFFBBBBLRR
669
+BFFFFFBRRL
670
+BBFBBBBRLL
671
+BFFFBBBLLR
672
+BFBFFFFRRR
673
+BBFBFFBLLR
674
+FBFFFFFLRR
675
+FBBBBBFRLL
676
+BFFBFBBLLL
677
+BBBFBBFLRL
678
+BBFFFBBRRL
679
+FBFBBBFLLR
680
+FFBBBBBRRL
681
+BFFFFFBLRR
682
+FFBFBBFRLL
683
+FBBFFFBLLL
684
+FFBBFBFRRR
685
+FBFFBBFLLL
686
+FBBFBBFRLR
687
+BFFFFBBRRR
688
+BFFFBBFLRR
689
+FBFFFFBRRL
690
+BFBFBBBLRR
691
+BBBFFBBRLL
692
+BBFFBBFLLL
693
+BFBFBBFRRL
694
+FBBFBFBLLL
695
+FFBFFBBRRL
696
+FBFBBFFRRR
697
+BFBBBFBRRL
698
+FFBFFBBLRL
699
+FFBBBBBLRL
700
+FFFBBFBLRL
701
+FBBBBFBRLL
702
+FBBBFFBLLL
703
+BBFFFBBLLL
704
+BFFFFFFRRR
705
+BFBBBBBRRL
706
+FBFBFBFRRL
707
+FBBBFFBRLL
708
+BBBFBFBLRL
709
+FBBBBFFRRL
710
+FBFFBFFRRR
711
+FBFFBFFRLL
712
+FBFBFFFLLL
713
+BBFBBFBRRR
714
+FFBBFFBLLR
715
+BBBFBBFRRR
716
+BBBFFBFRLR
717
+FFBFFFFRRL
718
+BFFFBFBLRR
719
+FBBBFFBRRR
720
+FFFBBBFLLL
721
+FBFFFBBRLL
722
+BBFBBFFLRL
723
+FFBFBBBLRR
724
+FFBBBFFLRR
725
+FFBBBBFRLL
726
+FFFBFBBLRL
727
+BBBFFBBRLR
728
+BBBFFFFRLL
729
+FBBFFBFLLL
730
+BFBBBBFLLR
731
+FBFBFBFLLL
732
+FBFFFBFLLR
733
+BFBBFFFLRL
734
+FFBFBFFRLR
735
+BFFBFBBRRL
736
+FBFFFFFLLL
737
+BFFFFBBLRL
738
+BFBBBFBLLL
739
+BBFFBFBRRL
740
+BBFBBBFRRR
741
+FBBBFFFLLR
742
+FFFBBBFRLL
743
+BFBBBBBLRR
744
+BBFFFBBLRL
745
+BBFBFBBLRR
746
+BBFBFBBRLR
747
+FBBBBFFRLR
748
+BBBFBFBRRR
749
+BBBFFFBRRR
750
+FBBFBBBRLL
751
+FBFBFFFLRR
752
+FFBBBFFLRL
753
+FBBBBFBRLR
754
+BFFBFBFLLL
755
+BFBFBFFRRL
756
+BFBFFFFRLL
757
+BBBFFBBRRL
758
+FBBBFBFRLL
759
+BFBBFBBLRR
760
+BBBFBBBRLL
761
+BBBFFBFLRR
762
+FBBFFFBLLR
763
+BFBFBBBRRR
764
+BBBFBBBRRR
765
+FBFFBBBLLR
766
+FBFBFFBRLR
767
+FFBFFFBRRR
768
+FBFFFBBLLR
769
+BFFBFFFLLL
770
+FBFBFFBLLL
771
+FBFBBBFLLL
772
+FFBFBFFLLL
773
+FFBFBBFRLR
774
+FFBFFFFLRR
775
+FFBBFBBRRR
776
+FFBFBBBRRL
777
+BFBBBFBRLL
778
+BBBFFFBRLL
779
+FBFFBFFLLL
780
+BBFFBFFRRR
781
+FFFBBFBRLL
782
+BFFBFFFLRR
783
+FBBBBBFRRL
784
+FFBFBBFRRL
785
+BBFFFFFRRR
786
+BFFFFFBLLR
787
+FBFBFFBRLL
788
+BFBFFFBRLR
789
+FFBBFBFRLL
790
+BBFBBBFRLR
791
+FBFBBFBLRL
792
+FFBFFFBLRR
793
+FBFBFFFRLR
794
+BFFBBFFRLL
795
+FBBFBFBRRR
796
+FFBBBBBRRR
797
+FBBFFBBLLR
798
+FFFBBBBRRL
799
+FFFBBBBRLL
800
+BBFFFFFRLL
801
+BBFBBBBRRR
802
+BFFBBFBRRR
803
+BFBBFBBLRL
804
+BBFBBBBRLR
805
+FBBBFFBLLR
806
+FBBFBBBLRR
807
+FFBBBFFRRL
808
+BBFBBBBLRR
809
+FBBFBBFRRR
810
+FFBBFBFLRL
811
+FBBFBBBLRL
812
+FBFFFFBRRR
813
+FFBBFFFLLL
814
+BBBFFFFLRR
815
+FBFBBFFLRL
816
+FFFBBFFRLR
817
+FBBBBFFLLR
818
+BFBFBFBLRR
819
+FBBBBFFLRR
820
+BBFBFFFLLR
821
+FFBBFBBRLR
822
+BFFBBFFLRR
823
+FFBFFBFRLL
824
+BBFBBFFLRR
825
+BBFBFBFLLR
826
+BBFBFFBRLL
827
+FFBFBFBRRL
828
+BFBBFFBRLL
829
+FFFBBBFLLR
830
+FBFFBBBLLL
831
+FFFBBBFRLR
832
+FFBBFFBLLL
833
+FFBBBBFRLR
834
+BBFFFFBLRL
835
+FBBBBFBRRR
836
+BFFFBBFLLL
837
+BBBFBBBLLR
838
+BBFBFFFRLR
839
+FBFFFBFRLL
840
+BBFBBBFLRR
841
+BBFBFFFLRL
842
+FFBFFFFLLR
843
+FBBFBBBLLR
844
+BBFFBBFRRR
845
+BBBFBFBLLL
846
+FBBFBFFRLR
847
+FBFFBBFLRL
848
+FFFBBBBLLL
849
+BFBFFFBLLL
850
+FBBFBFBLLR
851
+BBFBFFBLLL
852
+FFFBBFBLLL
853
+BFFBFBFLLR
854
+FFBFBFBRLR
855
+BFFBFBBRLR
856
+FFBFBFBLRR
857
+FBFFFBBLRL
858
+BBFFBFBLLR
859
+BFBFFFBRRR
860
+BFFFFBFRLR
861
+FBFBFBBLRL
862
+BFFFBFFRLR
863
+BBFFBBFRLL
864
+BFBBBBBRLR
865
+BFBFBFBRRR
866
+BBFFBBFLRR
867
+FFBBBBBLLR
868
+FBFFFFFLLR
869
+FBFBFBFLRL
870
+FBFFBBBRLR
871
+BBBFBFBLLR
872
+BFFBFFBLLR
873
+FBBBBFFLLL
874
+BFBBFFFLLR
875
+FFFBFBFRRR
876
+FFBFFFBRRL
877
+FBBBBBBLLR
878
+FBBFFFBLRL
879
+BBBFFBFRLL
880
+FBFFBFBRRL
881
+BBFFFFFRRL