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
| ''' Cool🆒! Have u ever played Manifold Garden? I'll show you a scrennshot: /_Data/MG_3Dmaze.jpg This problem is quite similar to the ball puzzle. '''
q = [] last=() vd=()
s=lambda p,q,r: 40000*r+200*q+p
def ss(p,x,y,z): while 1: if p==0 and s(x-1,y,z) in a: x-=1 elif p==1 and s(x+1,y,z) in a: x+=1 elif p==2 and s(x,y-1,z) in a: y-=1 elif p==3 and s(x,y+1,z) in a: y+=1 elif p==4 and s(x,y,z-1) in a: z-=1 elif p==5 and s(x,y,z+1) in a: z+=1 else: return (x,y,z)
def main(x,y,z): global q,vd,last s2 = [ss(p,x,y,z) for p in range(6)] for i,j in enumerate(s2): if s2.count(j)==1 and j != last: q.append(i) break last = vd vd = s2[i] if (0,0,0) in s2: return main(*s2[i]) a = [0x0, 0x9C40, 0x13880, 0x1D4C0, 0x27100, 0x30D40, 0x3A980, 0x445C0, 0x448E7, 0x448E8, 0x448E9, 0x448EA, 0x448EB, 0x448EC, 0x448ED, 0x448EE, 0x448EF, 0x448F0, 0x448F1, 0x448F2, 0x448F3, 0x448F4, 0x448F5, 0x448F6, 0x448F7, 0x448F8, 0x448F9, 0x448FA, 0x448FB, 0x448FC, 0x448FD, 0x448FE, 0x448FF, 0x44900, 0x44901, 0x44902, 0x44903, 0x44904, 0x44905, 0x44906, 0x44907, 0x44908, 0x44909, 0x4490A, 0x4490B, 0x449AF, 0x44A77, 0x44B3F, 0x44C07, 0x44CCF, 0x44D97, 0x44E5F, 0x44F27, 0x44FEF, 0x450B7, 0x4517F, 0x45247, 0x4530F, 0x453D7, 0x4549F, 0x45567, 0x4562F, 0x456F7, 0x457BF, 0x45887, 0x4594F, 0x45A17, 0x45ADF, 0x45BA7, 0x45C6F, 0x45D37, 0x45DFF, 0x45EC7, 0x45F8F, 0x46057, 0x4611F, 0x461E7, 0x462AF, 0x46377, 0x4643F, 0x46507, 0x465CF, 0x46697, 0x4675F, 0x46827, 0x468EF, 0x469B7, 0x46A7F, 0x46B47, 0x46C0F, 0x46CD7, 0x46D9F, 0x46E67, 0x46F2F, 0x46FF7, 0x470BF, 0x47187, 0x4724F, 0x47317, 0x473DF, 0x474A7, 0x4756F, 0x47637, 0x476FF, 0x477C7, 0x4788F, 0x47957, 0x47A1F, 0x47AE7, 0x47BAF, 0x47C77, 0x47D3F, 0x47E07, 0x47ECF, 0x47F97, 0x4805F, 0x48127, 0x481EF, 0x482B7, 0x4837F, 0x48447, 0x4850F, 0x485D7, 0x4869F, 0x48767, 0x4882F, 0x488F7, 0x489BF, 0x48A87, 0x48B4F, 0x48C17, 0x48CDF, 0x48DA7, 0x48E6F, 0x48F37, 0x48FFF, 0x490C7, 0x4918F, 0x49257, 0x4931F, 0x493E7, 0x494AF, 0x49577, 0x4963F, 0x49707, 0x497CF, 0x49897, 0x4995F, 0x49A27, 0x49AEF, 0x49BB7, 0x49C7F, 0x49D47, 0x49E0F, 0x49ED7, 0x49F9F, 0x4A067, 0x4A12F, 0x4A1F7, 0x4A2BF, 0x4A387, 0x4A44F, 0x4A517, 0x4A5DF, 0x4A6A7, 0x4A76F, 0x4A837, 0x4A8FF, 0x4A9C7, 0x4AA8F, 0x4AB57, 0x4AC1F, 0x4ACE7, 0x4ADAF, 0x4AE77, 0x4AF3F, 0x4B007, 0x4B0CF, 0x4B197, 0x4B25F, 0x4B327, 0x4B3EF, 0x4B4B7, 0x4B57F, 0x4B647, 0x4B70F, 0x4B7D7, 0x4B89F, 0x4B967, 0x4BA2F, 0x4BAF7, 0x4BBBF, 0x4BC87, 0x4BD4F, 0x4BE17, 0x4BEDF, 0x4BFA7, 0x4C06F, 0x4C137, 0x4C1FF, 0x4C2C7, 0x4C38F, 0x4C457, 0x4C51F, 0x4C5E7, 0x4C6AF, 0x4C777, 0x4C83F, 0x4C907, 0x4C9CF, 0x4CA97, 0x4CB5F, 0x4CC27, 0x4CCEF, 0x4CDB7, 0x4CE7F, 0x4CF47, 0x4D00F, 0x4D0D7, 0x4D19F, 0x4D267, 0x4D32F, 0x4D3F7, 0x4D4BF, 0x4D587, 0x4D64F, 0x4D717, 0x4D7DF, 0x4D8A7, 0x4D96F, 0x4DA37, 0x4DAFF, 0x4DBC7, 0x4DC8F, 0x4DD57, 0x4E200, 0x4E54B, 0x57997, 0x57E40, 0x5818B, 0x615D7, 0x61A80, 0x61DCB, 0x6B217, 0x6B6C0, 0x6BA0B, 0x74E57, 0x75300, 0x7564B, 0x7EA97, 0x7EF40, 0x7F28B, 0x886D7, 0x88B80, 0x88ECB, 0x92317, 0x927C0, 0x92B0B, 0x9BF57, 0x9C400, 0x9C74B, 0x0A5B97, 0x0A6040, 0x0A638B, 0x0AF7D7, 0x0AFC80, 0x0AFFCB, 0x0B9417, 0x0B98C0, 0x0B9C0B, 0x0C3057, 0x0C3500, 0x0C384B, 0x0CCC97, 0x0CD140, 0x0CD48B, 0x0D68D7, 0x0D6D80, 0x0D70CB, 0x0E0517, 0x0E09C0, 0x0E0D0B, 0x0EA157, 0x0EA600, 0x0EA94B, 0x0F3D97, 0x0F4240, 0x0F458B, 0x0FD9D7, 0x0FDE80, 0x0FE1CB, 0x107617, 0x107AC0, 0x107E0B, 0x111257, 0x111700, 0x111A4B, 0x11AE97, 0x11B340, 0x11B68B, 0x124AD7, 0x124F80, 0x1252CB, 0x12E717, 0x12EBC0, 0x12EF0B, 0x138357, 0x138800, 0x138801, 0x138802, 0x138803, 0x138804, 0x138805, 0x138806, 0x138807, 0x138808, 0x138809, 0x13880A, 0x13880B, 0x13880C, 0x13880D, 0x13880E, 0x13880F, 0x1388D7, 0x13899F, 0x138A67, 0x138B2F, 0x138B4B, 0x138BF7, 0x138CBF, 0x138D87, 0x138E4F, 0x138F17, 0x138FDF, 0x1390A7, 0x13916F, 0x139237, 0x1392FF, 0x1393C7, 0x13948F, 0x139557, 0x13961F, 0x1396E7, 0x1397AF, 0x139877, 0x13993F, 0x139A07, 0x139ACF, 0x139B97, 0x139C5F, 0x139D27, 0x139DEF, 0x139EB7, 0x139F7F, 0x13A047, 0x13A10F, 0x13A1D7, 0x13A29F, 0x13A367, 0x13A42F, 0x13A4F7, 0x13A5BF, 0x13A687, 0x13A74F, 0x13A817, 0x13A8DF, 0x13A9A7, 0x13AA6F, 0x13AB37, 0x13ABFF, 0x13ACC7, 0x13AD8F, 0x13AE57, 0x13AF1F, 0x13AFE7, 0x13B0AF, 0x13B177, 0x13B23F, 0x13B307, 0x13B3CF, 0x13B497, 0x13B55F, 0x13B627, 0x13B6EF, 0x13B7B7, 0x13B87F, 0x13B947, 0x13BA0F, 0x13BAD7, 0x13BB9F, 0x13BC67, 0x13BD2F, 0x13BDF7, 0x13BEBF, 0x13BF87, 0x13C04F, 0x13C117, 0x13C1DF, 0x13C2A7, 0x13C36F, 0x13C437, 0x13C4FF, 0x13C5C7, 0x13C68F, 0x13C757, 0x13C81F, 0x13C8E7, 0x13C9A7, 0x13C9A8, 0x13C9A9, 0x13C9AA, 0x13C9AB, 0x13C9AC, 0x13C9AD, 0x13C9AE, 0x13C9AF, 0x141F97, 0x14278B, 0x1465E7, 0x14BBD7, 0x14C3CB, 0x150227, 0x155817, 0x15600B, 0x159E67, 0x15F457, 0x15FC4B, 0x163AA7, 0x169097, 0x16988B, 0x16D6E7, 0x172CD7, 0x1734CB, 0x177327, 0x17C917, 0x17D10B, 0x180F67, 0x186557, 0x186D4B, 0x18ABA7, 0x190197, 0x19098B, 0x1947E7, 0x199DD7, 0x19A5CB, 0x19E427, 0x1A3A17, 0x1A420B, 0x1A8067, 0x1AD657, 0x1ADE4B, 0x1B1CA7, 0x1B7297, 0x1B7A8B, 0x1BB8E7, 0x1C0ED7, 0x1C16CB, 0x1C5527, 0x1CAB17, 0x1CB30B, 0x1CF167, 0x1D4757, 0x1D4F4B, 0x1D8DA7, 0x1DE397, 0x1DEB8B, 0x1E29E7, 0x1E7FD7, 0x1E87CB, 0x1EC627, 0x1F1C17, 0x1F240B, 0x1F6267, 0x1FB857, 0x1FC04B, 0x1FFEA7, 0x205497, 0x205C8B, 0x209AE7, 0x20F0D7, 0x20F8CB, 0x213727, 0x218D17, 0x21950B, 0x21D367, 0x222957, 0x22314B, 0x226FA7, 0x22C597, 0x22CD8B, 0x230BE7, 0x2361D7, 0x2369CB, 0x23A827, 0x23FE17, 0x24060B, 0x244467, 0x249A57, 0x24A24B, 0x24E0A7, 0x253697, 0x253E8B, 0x257CE7, 0x25D2D7, 0x25DACB, 0x261927, 0x266F17, 0x26770B, 0x26B567, 0x270B57, 0x27134B, 0x2751A7, 0x27A797, 0x27AF8B, 0x27EDE7, 0x2843D7, 0x284BCB, 0x288A27, 0x28E017, 0x28E80B, 0x292667, 0x297C57, 0x29844B, 0x29C2A7, 0x2A1897, 0x2A208B, 0x2A5EE7, 0x2AB4D7, 0x2ABCCB, 0x2AFB27, 0x2B5117, 0x2B590B, 0x2B9767, 0x2BED57, 0x2BF54B, 0x2C33A7, 0x2C8997, 0x2C918B, 0x2CCFE7, 0x2D25D7, 0x2D2DCB, 0x2D6C27, 0x2DC217, 0x2DCA0B, 0x2E0867, 0x2E5E57, 0x2E664B, 0x2EA4A7, 0x2EFA97, 0x2F028B, 0x2F40E7, 0x2F96D7, 0x2F9ECB, 0x2FDD27, 0x303317, 0x303B0B, 0x307967, 0x30CF57, 0x30D74B, 0x3115A7, 0x316B97, 0x31738B, 0x31B1E7, 0x3207D7, 0x320FCB, 0x324E27, 0x32A417, 0x32AC0B, 0x32EA67, 0x334057, 0x33484B, 0x3386A7, 0x33DC97, 0x33E48B, 0x3422E7, 0x3478D7, 0x3480CB, 0x34BF27, 0x351517, 0x351D0B, 0x355B67, 0x35B157, 0x35B94B, 0x35F7A7, 0x364D97, 0x36558B, 0x3693E7, 0x36E9D7, 0x36F1CB, 0x373027, 0x378617, 0x378E0B, 0x37CC67, 0x382257, 0x382A4B, 0x3868A7, 0x38BE97, 0x38C68B, 0x3904E7, 0x395AD7, 0x3962CB, 0x39A127, 0x39F717, 0x39FF0B, 0x3A3D67, 0x3A9357, 0x3A9B4B, 0x3AD9A7, 0x3B2F97, 0x3B378B, 0x3B75E7, 0x3BCBD7, 0x3BD3CB, 0x3C1227, 0x3C6817, 0x3C700B, 0x3CAE67, 0x3D0457, 0x3D0C4B, 0x3D4AA7, 0x3DA097, 0x3DA88B, 0x3DE6E7, 0x3E3CD7, 0x3E44CB, 0x3E8327, 0x3ED917, 0x3EE10B, 0x3F1F67, 0x3F7557, 0x3F7D4B, 0x3FBBA7, 0x401197, 0x40198B, 0x4057E7, 0x40ADD7, 0x40B5CB, 0x40F427, 0x414A17, 0x41520B, 0x419067, 0x41E657, 0x41EE4B, 0x422CA7, 0x428297, 0x428A8B, 0x42C8E7, 0x431ED7, 0x4326CB, 0x436527, 0x43BB17, 0x43C30B, 0x440167, 0x445757, 0x445F4B, 0x449DA7, 0x44F397, 0x44FB8B, 0x4539E7, 0x458FD7, 0x4597CB, 0x45D627, 0x462C17, 0x46340B, 0x467267, 0x46C857, 0x46D04B, 0x470EA7, 0x476497, 0x476C8B, 0x47AAE7, 0x4800D7, 0x4808CB, 0x484727, 0x489D17, 0x48A50B, 0x48E367, 0x493957, 0x49414B, 0x497FA7, 0x49D597, 0x49DD8B, 0x4A1BE7, 0x4A71D7, 0x4A79CB, 0x4A9792, 0x4A9793, 0x4A9794, 0x4A9795, 0x4A9796, 0x4A9797, 0x4A9798, 0x4A9799, 0x4AB827, 0x4B0E17, 0x4B160B, 0x4B33D2, 0x4B33D9, 0x4B5467, 0x4BAA57, 0x4BB24B, 0x4BD012, 0x4BD019, 0x4BF0A7, 0x4C4697, 0x4C4E8B, 0x4C6C52, 0x4C6C59, 0x4C8CE7, 0x4CE2D7, 0x4CEACB, 0x4CF197, 0x4CF25F, 0x4CF327, 0x4CF3EF, 0x4CF4B7, 0x4CF57F, 0x4CF647, 0x4CF70F, 0x4CF7D7, 0x4CF89F, 0x4CF967, 0x4CFA2F, 0x4CFAF7, 0x4CFBBF, 0x4CFC87, 0x4CFD4F, 0x4CFE17, 0x4CFEDF, 0x4CFFA7, 0x4D006F, 0x4D0137, 0x4D01FF, 0x4D02C7, 0x4D038F, 0x4D0457, 0x4D051F, 0x4D05E7, 0x4D06AF, 0x4D0777, 0x4D083F, 0x4D0892, 0x4D0899, 0x4D0907, 0x4D095A, 0x4D09CF, 0x4D0A22, 0x4D0A97, 0x4D0AEA, 0x4D0B5F, 0x4D0BB2, 0x4D0C27, 0x4D0C7A, 0x4D0CEF, 0x4D0D42, 0x4D0DB7, 0x4D0E0A, 0x4D0E7F, 0x4D0ED2, 0x4D0F47, 0x4D0F9A, 0x4D100F, 0x4D1062, 0x4D10D7, 0x4D112A, 0x4D119F, 0x4D11F2, 0x4D1267, 0x4D12BA, 0x4D132F, 0x4D1382, 0x4D13F7, 0x4D144A, 0x4D14BF, 0x4D1512, 0x4D1587, 0x4D15DA, 0x4D164F, 0x4D16A2, 0x4D1717, 0x4D176A, 0x4D17DF, 0x4D1832, 0x4D18A7, 0x4D18FA, 0x4D196F, 0x4D19C2, 0x4D1A37, 0x4D1A8A, 0x4D1AFF, 0x4D1B52, 0x4D1BC7, 0x4D1C1A, 0x4D1C8F, 0x4D1CE2, 0x4D1D57, 0x4D1DAA, 0x4D1E1F, 0x4D1E72, 0x4D1EE7, 0x4D1F3A, 0x4D1FAF, 0x4D2002, 0x4D2077, 0x4D20CA, 0x4D213F, 0x4D2192, 0x4D2207, 0x4D225A, 0x4D22CF, 0x4D2322, 0x4D2397, 0x4D23EA, 0x4D23EB, 0x4D23EC, 0x4D23ED, 0x4D23EE, 0x4D23EF, 0x4D23F0, 0x4D23F1, 0x4D23F2, 0x4D23F3, 0x4D23F4, 0x4D23F5, 0x4D23F6, 0x4D23F7, 0x4D23F8, 0x4D23F9, 0x4D23FA, 0x4D23FB, 0x4D23FC, 0x4D23FD, 0x4D23FE, 0x4D23FF, 0x4D2400, 0x4D2401, 0x4D2402, 0x4D2403, 0x4D2404, 0x4D2405, 0x4D2406, 0x4D2407, 0x4D2408, 0x4D2409, 0x4D240A, 0x4D240B, 0x4D240C, 0x4D240D, 0x4D240E, 0x4D240F, 0x4D2410, 0x4D2411, 0x4D2412, 0x4D2413, 0x4D2414, 0x4D2415, 0x4D2416, 0x4D2417, 0x4D2418, 0x4D2419, 0x4D241A, 0x4D241B, 0x4D241C, 0x4D241D, 0x4D241E, 0x4D241F, 0x4D2420, 0x4D2421, 0x4D2422, 0x4D2423, 0x4D2424, 0x4D2425, 0x4D2426, 0x4D2427, 0x4D2428, 0x4D2429, 0x4D242A, 0x4D242B, 0x4D242C, 0x4D242D, 0x4D242E, 0x4D242F, 0x4D2430, 0x4D2431, 0x4D2432, 0x4D2433, 0x4D2434, 0x4D2435, 0x4D2436, 0x4D2437, 0x4D2438, 0x4D2439, 0x4D243A, 0x4D243B, 0x4D243C, 0x4D243D, 0x4D243E, 0x4D243F, 0x4D2440, 0x4D2441, 0x4D2442, 0x4D2443, 0x4D2444, 0x4D2445, 0x4D2446, 0x4D2447, 0x4D2448, 0x4D2449, 0x4D244A, 0x4D244B, 0x4D244C, 0x4D244D, 0x4D244E, 0x4D244F, 0x4D2450, 0x4D2451, 0x4D2452, 0x4D2453, 0x4D2454, 0x4D2455, 0x4D2456, 0x4D2457, 0x4D2458, 0x4D2459, 0x4D245A, 0x4D245B, 0x4D245C, 0x4D245D, 0x4D245E, 0x4D245F, 0x4D2927, 0x4D7F17, 0x4D870B, 0x4D8DD7, 0x4DA4D9, 0x4DC567, 0x4E1B57, 0x4E234B, 0x4E2A17, 0x4E4119, 0x4E61A7, 0x4EB797, 0x4EBF8B, 0x4EC657, 0x4EDD59, 0x4EFDE7, 0x4F53D7, 0x4F5BCB, 0x4F6297, 0x4F7999, 0x4F9A27, 0x4FF017, 0x4FF80B, 0x4FFED7, 0x5015D9, 0x503667, 0x508C57, 0x50944B, 0x509B17, 0x50B219, 0x50D2A7, 0x512897, 0x51308B, 0x513757, 0x514E59, 0x516EE7, 0x51C4D7, 0x51CCCB, 0x51D397, 0x51D5EF, 0x51D6B7, 0x51D77F, 0x51D847, 0x51D90F, 0x51D9D7, 0x51DA9F, 0x51DB67, 0x51DC2F, 0x51DCF7, 0x51DDBF, 0x51DE87, 0x51DF4F, 0x51E017, 0x51E0DF, 0x51E1A7, 0x51E26F, 0x51E337, 0x51E3FF, 0x51E4C7, 0x51E58F, 0x51E657, 0x51E71F, 0x51E7E7, 0x51E8AF, 0x51E977, 0x51EA3F, 0x51EA99, 0x51EB07, 0x51EBCF, 0x51EC97, 0x51ED5F, 0x51EE27, 0x51EEEF, 0x51EFB7, 0x51F07F, 0x51F147, 0x51F20F, 0x51F2D7, 0x51F39F, 0x51F467, 0x51F52F, 0x51F5F7, 0x51F6BF, 0x51F787, 0x51F84F, 0x51F917, 0x51F9DF, 0x51FAA7, 0x51FB6F, 0x51FC37, 0x51FCFF, 0x51FDC7, 0x51FE8F, 0x51FF57, 0x52001F, 0x5200E7, 0x5201AF, 0x520277, 0x52033F, 0x520407, 0x5204CF, 0x520597, 0x52065F, 0x520727, 0x5207EF, 0x5208B7, 0x52097F, 0x520A47, 0x520B0F, 0x520B27, 0x520BD7, 0x520C9F, 0x520D67, 0x520E2F, 0x520EF7, 0x520FBF, 0x521087, 0x52114F, 0x521217, 0x5212DF, 0x5213A7, 0x52146F, 0x521537, 0x5215FF, 0x5216C7, 0x52178F, 0x521857, 0x52191F, 0x5219E7, 0x521AAF, 0x521B77, 0x521C3F, 0x521D07, 0x521DCF, 0x521E97, 0x521F5F, 0x522027, 0x5220EF, 0x5221B7, 0x52227F, 0x522347, 0x52240F, 0x5224D7, 0x52259F, 0x522667, 0x52272F, 0x5227F7, 0x5228BF, 0x522987, 0x522A4F, 0x522B17, 0x522BDF, 0x522CA7, 0x522D6F, 0x522E37, 0x522EFF, 0x522FC7, 0x52308F, 0x523157, 0x52321F, 0x5232E7, 0x5233AF, 0x523477, 0x52353F, 0x523607, 0x5236CF, 0x523797, 0x52385F, 0x523927, 0x5239EF, 0x523AB7, 0x523B7F, 0x523C47, 0x523D0F, 0x523DD7, 0x523E9F, 0x523F67, 0x52402F, 0x5240F7, 0x5241BF, 0x524287, 0x52434F, 0x524417, 0x5244DF, 0x5245A7, 0x52466F, 0x524737, 0x5247FF, 0x5248C7, 0x52498F, 0x524A57, 0x524B1F, 0x524BE7, 0x524CAF, 0x524D77, 0x524E3F, 0x524F07, 0x524FCF, 0x525097, 0x52515F, 0x525227, 0x5252EF, 0x5253B7, 0x52547F, 0x525547, 0x52560F, 0x5256D7, 0x52579F, 0x525867, 0x52592F, 0x5259F7, 0x525ABF, 0x525B87, 0x525C4F, 0x525D17, 0x525DDF, 0x525EA7, 0x525F6F, 0x526037, 0x526117, 0x52690B, 0x526FD7, 0x52722F, 0x5286D9, 0x52A767, 0x52FC77, 0x52FD57, 0x53054B, 0x530C17, 0x530E6F, 0x532319, 0x5343A7, 0x5398B7, 0x539997, 0x53A18B, 0x53A857, 0x53AAAF, 0x53BF59, 0x53DFE7, 0x5434F7, 0x5435D7, 0x543DCB, 0x544497, 0x5446EF, 0x545B99, 0x547C27, 0x54D137, 0x54D217, 0x54DA0B, 0x54E0D7, 0x54E32F, 0x54F7D9, 0x551867, 0x556D77, 0x556E57, 0x55764B, 0x557D17, 0x557F6F, 0x559419, 0x55B4A7, 0x5609B7, 0x560A97, 0x56128B, 0x561957, 0x561BAF, 0x563059, 0x5650E7, 0x56A5F7, 0x56A6D7, 0x56AECB, 0x56B597, 0x56B7EF, 0x56CC99, 0x56ED27, 0x574237, 0x574317, 0x574B0B, 0x5751D7, 0x57542F, 0x5768D9, 0x578967, 0x57DE77, 0x57DF57, 0x57E74B, 0x57EE17, 0x57F06F, 0x580519, 0x5825A7, 0x587AB7, 0x587B97, 0x58838B, 0x588A57, 0x588CAF, 0x58A159, 0x58C1E7, 0x5916F7, 0x5917D7, 0x591FCB, 0x592697, 0x5928EF, 0x593D99, 0x595E27, 0x59B337, 0x59B417, 0x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0x5E1FD0, 0x5E1FD1, 0x5E1FD2, 0x5E1FD3, 0x5E1FD4, 0x5E1FD5, 0x5E209D, 0x5E2165, 0x5E222D, 0x5E22F5, 0x5E23BD, 0x5E2485, 0x5E254D, 0x5E2615, 0x5E26DD, 0x5E27A5, 0x5E286D, 0x5E2935, 0x5E29FD, 0x5E2AC5, 0x5E2B8D, 0x5E2C55, 0x5E2D1D, 0x5E2DE5, 0x5E2EAD, 0x5E2F75, 0x5E303D, 0x5E3105, 0x5E31CD, 0x5E3295, 0x5E335D, 0x5E3425, 0x5E34ED, 0x5E35B5, 0x5E367D, 0x5E3745, 0x5E380D, 0x5E38D5, 0x5E399D, 0x5E3A65, 0x5E3B2D, 0x5E3BF5, 0x5E3CBD, 0x5E3D85, 0x5E3E4D, 0x5E3F15, 0x5E3FDD, 0x5E4027, 0x5E40A5, 0x5E416D, 0x5E4235, 0x5E42FD, 0x5E43C5, 0x5E448D, 0x5E4555, 0x5E461D, 0x5E46E5, 0x5E47AD, 0x5E9537, 0x5E9617, 0x5E9E0B, 0x5EDC67, 0x5EE3ED, 0x5F3177, 0x5F3257, 0x5F3A4B, 0x5F78A7, 0x5F802D, 0x5FCDB7, 0x5FCE97, 0x5FD68B, 0x6014E7, 0x601C6D, 0x6069F7, 0x606AD7, 0x6072CB, 0x60B127, 0x60B8AD, 0x610637, 0x610717, 0x610F0B, 0x614D67, 0x6154ED, 0x61A277, 0x61A357, 0x61AB4B, 0x61E9A7, 0x61F12D, 0x623EB7, 0x623F97, 0x62478B, 0x6285E7, 0x628D6D, 0x62DAF7, 0x62DBD7, 0x62E3CB, 0x632227, 0x6329AD, 0x637737, 0x637817, 0x63800B, 0x63BE67, 0x63C5ED, 0x641377, 0x641457, 0x641C4B, 0x645AA7, 0x64622D, 0x64AFB7, 0x64B097, 0x64B88B, 0x64F6E7, 0x64FE6D, 0x654BF7, 0x654CD7, 0x6554CB, 0x659327, 0x659AAD, 0x65E837, 0x65E917, 0x65F10B, 0x662F67, 0x6636ED, 0x668477, 0x668557, 0x668D4B, 0x66CBA7, 0x66D32D, 0x6720B7, 0x672197, 0x67298B, 0x6767E7, 0x676F6D, 0x67BCF7, 0x67BDD7, 0x67C5CB, 0x680427, 0x680BAD, 0x685937, 0x685A17, 0x68620B, 0x68A067, 0x68A7ED, 0x68F577, 0x68F657, 0x68FE4B, 0x693CA7, 0x69442D, 0x6991B7, 0x699297, 0x699A8B, 0x69D8E7, 0x69E06D, 0x6A2DF7, 0x6A2ED7, 0x6A36CB, 0x6A7527, 0x6A7CAD, 0x6ACA37, 0x6ACB17, 0x6AD30B, 0x6B1167, 0x6B18ED, 0x6B6677, 0x6B6757, 0x6B6F4B, 0x6B7013, 0x6B70DB, 0x6B71A3, 0x6B726B, 0x6B7333, 0x6B73FB, 0x6B74C3, 0x6B758B, 0x6B7653, 0x6B771B, 0x6B771C, 0x6B771D, 0x6B771E, 0x6B771F, 0x6B7720, 0x6B7721, 0x6B7722, 0x6B7723, 0x6B7724, 0x6B7725, 0x6B7726, 0x6B7727, 0x6B7728, 0x6B7729, 0x6B772A, 0x6B772B, 0x6B772C, 0x6B772D, 0x6B772E, 0x6B772F, 0x6B7730, 0x6B7731, 0x6B7732, 0x6B7733, 0x6B7734, 0x6B7735, 0x6B7736, 0x6B7737, 0x6B7738, 0x6B7739, 0x6B773A, 0x6B773B, 0x6B773C, 0x6B773D, 0x6B773E, 0x6B773F, 0x6B7740, 0x6B7741, 0x6B7742, 0x6B7743, 0x6B7744, 0x6B7745, 0x6B7746, 0x6B7747, 0x6B7748, 0x6B7749, 0x6B774A, 0x6B774B, 0x6B774C, 0x6B774D, 0x6B774E, 0x6B774F, 0x6B7750, 0x6B7751, 0x6B7752, 0x6B7753, 0x6B7754, 0x6B7755, 0x6B7756, 0x6B7757, 0x6B7758, 0x6B7759, 0x6B775A, 0x6B775B, 0x6B775C, 0x6B775D, 0x6B775E, 0x6B775F, 0x6B7760, 0x6B7761, 0x6B7762, 0x6B7763, 0x6B7764, 0x6B7765, 0x6B7766, 0x6B7767, 0x6B7768, 0x6B7769, 0x6B776A, 0x6B776B, 0x6B776C, 0x6B776D, 0x6B776E, 0x6B776F, 0x6B7770, 0x6B7771, 0x6B7772, 0x6B7773, 0x6B7774, 0x6B7775, 0x6B7776, 0x6B7777, 0x6B7778, 0x6B7779, 0x6B777A, 0x6B777B, 0x6B777C, 0x6B777D, 0x6B777E, 0x6B777F, 0x6B7780, 0x6B7781, 0x6B7782, 0x6B7783, 0x6B7784, 0x6B7785, 0x6B7786, 0x6B7787, 0x6B7788, 0x6B7789, 0x6B778A, 0x6B778B, 0x6B778C, 0x6B778D, 0x6B778E, 0x6B778F, 0x6B7790, 0x6B7791, 0x6B7792, 0x6B7793, 0x6B7794, 0x6B7795, 0x6B7796, 0x6B7797, 0x6B7798, 0x6B7799, 0x6B779A, 0x6B779B, 0x6B779C, 0x6B779D, 0x6B779E, 0x6B779F, 0x6B77A0, 0x6B77A1, 0x6B77A2, 0x6B77A3, 0x6B77A4, 0x6B77A5, 0x6B77A6, 0x6B77A7, 0x6B786F, 0x6B7937, 0x6B79FF, 0x6B7AC7, 0x6B7B8F, 0x6B7C57, 0x6B7D1F, 0x6B7DE7, 0x6B7EAF, 0x6B7F77, 0x6B803F, 0x6B8107, 0x6B81CF, 0x6B8297, 0x6B835F, 0x6B8427, 0x6B84EF, 0x6B85B7, 0x6B867F, 0x6B8747, 0x6B880F, 0x6B88D7, 0x6B899F, 0x6B8A67, 0x6B8B2F, 0x6B8BF7, 0x6B8CBF, 0x6B8D87, 0x6B8E4F, 0x6B8F17, 0x6B8FDF, 0x6B90A7, 0x6B916F, 0x6B9237, 0x6B92FF, 0x6B93C7, 0x6B948F, 0x6B9557, 0x6B961F, 0x6B96E7, 0x6B97AF, 0x6B9877, 0x6B993F, 0x6B9A07, 0x6B9ACF, 0x6B9B97, 0x6B9C5F, 0x6B9D27, 0x6B9DEF, 0x6B9EB7, 0x6B9F7F, 0x6BA047, 0x6BA10F, 0x6BA1D7, 0x6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0x6BF7C7, 0x6BF88F, 0x6BF957, 0x6BFA1F, 0x6BFAE7, 0x6BFBAF, 0x6BFC77, 0x6BFD3F, 0x6BFE07, 0x6BFECF, 0x6BFF97, 0x6C005F, 0x6C0127, 0x6C01EF, 0x6C02B7, 0x6C0397, 0x6C49E7, 0x6C4AAF, 0x6C4B77, 0x6C4C3F, 0x6C4D07, 0x6C4DCF, 0x6C4E97, 0x6C4F5F, 0x6C5027, 0x6C50EF, 0x6C516D, 0x6C51B7, 0x6C527F, 0x6C5347, 0x6C540F, 0x6C54D7, 0x6C559F, 0x6C5667, 0x6C572F, 0x6C57F7, 0x6C58BF, 0x6C5987, 0x6C5A4F, 0x6C5B17, 0x6C5BDF, 0x6C5CA7, 0x6C5D6F, 0x6C5E37, 0x6C5EFF, 0x6C5FC7, 0x6C608F, 0x6C6157, 0x6C621F, 0x6C62E7, 0x6C63AF, 0x6C6477, 0x6C653F, 0x6C6607, 0x6C66CF, 0x6C6797, 0x6C685F, 0x6C6927, 0x6C69EF, 0x6C6AB7, 0x6C6B7F, 0x6C6C47, 0x6C6D0F, 0x6C6DD7, 0x6C6E9F, 0x6C6F67, 0x6C702F, 0x6C70F7, 0x6C71BF, 0x6C7287, 0x6C734F, 0x6C7417, 0x6C74DF, 0x6C75A7, 0x6C766F, 0x6C7737, 0x6C77FF, 0x6C78C7, 0x6C798F, 0x6C7A57, 0x6C7B1F, 0x6C7BE7, 0x6C7CAF, 0x6C7D77, 0x6C7E3F, 0x6C7F07, 0x6C7FCF, 0x6C8097, 0x6C815F, 0x6C8227, 0x6C82EF, 0x6C83B7, 0x6C847F, 0x6C8547, 0x6C860F, 0x6C86D7, 0x6C879F, 0x6C8867, 0x6C892F, 0x6C89F7, 0x6C8ABF, 0x6C8B87, 0x6C8C4F, 0x6C8D17, 0x6C8DDF, 0x6C8EA7, 0x6C8F6F, 0x6C9037, 0x6C90FF, 0x6C91C7, 0x6C928F, 0x6C9357, 0x6C941F, 0x6C94E7, 0x6C95AF, 0x6C9677, 0x6C973F, 0x6C9807, 0x6C98CF, 0x6C9997, 0x6C9A5F, 0x6C9B27, 0x6C9BEF, 0x6C9CB7, 0x6C9D7F, 0x6C9E47, 0x6C9F0F, 0x6C9FD7, 0x6CEDAD, 0x6D8271, 0x6D8339, 0x6D8401, 0x6D84C9, 0x6D8591, 0x6D8659, 0x6D8721, 0x6D87E9, 0x6D88B1, 0x6D8979, 0x6D897A, 0x6D897B, 0x6D897C, 0x6D897D, 0x6D897E, 0x6D897F, 0x6D8980, 0x6D8981, 0x6D8982, 0x6D8983, 0x6D8984, 0x6D8985, 0x6D8986, 0x6D8987, 0x6D8988, 0x6D8989, 0x6D898A, 0x6D898B, 0x6D898C, 0x6D898D, 0x6D898E, 0x6D898F, 0x6D8990, 0x6D8991, 0x6D8992, 0x6D8993, 0x6D8994, 0x6D8995, 0x6D8996, 0x6D8997, 0x6D8998, 0x6D8999, 0x6D899A, 0x6D899B, 0x6D899C, 0x6D899D, 0x6D899E, 0x6D899F, 0x6D89A0, 0x6D89A1, 0x6D89A2, 0x6D89A3, 0x6D89A4, 0x6D89A5, 0x6D89A6, 0x6D89A7, 0x6D89A8, 0x6D89A9, 0x6D89AA, 0x6D89AB, 0x6D89AC, 0x6D89AD, 0x6D89AE, 0x6D89AF, 0x6D89B0, 0x6D89B1, 0x6D89B2, 0x6D89B3, 0x6D89B4, 0x6D89B5, 0x6D89B6, 0x6D89B7, 0x6D89B8, 0x6D89B9, 0x6D89BA, 0x6D89BB, 0x6D89BC, 0x6D89BD, 0x6D89BE, 0x6D89BF, 0x6D89C0, 0x6D89C1, 0x6D89C2, 0x6D89C3, 0x6D89C4, 0x6D89C5, 0x6D89C6, 0x6D89C7, 0x6D89C8, 0x6D89C9, 0x6D89CA, 0x6D89CB, 0x6D89CC, 0x6D89CD, 0x6D89CE, 0x6D89CF, 0x6D89D0, 0x6D89D1, 0x6D89D2, 0x6D89D3, 0x6D89D4, 0x6D89D5, 0x6D89D6, 0x6D89D7, 0x6D89D8, 0x6D89D9, 0x6D89DA, 0x6D89DB, 0x6D89DC, 0x6D89DD, 0x6D89DE, 0x6D89DF, 0x6D89E0, 0x6D89E1, 0x6D89E2, 0x6D89E3, 0x6D89E4, 0x6D89E5, 0x6D89E6, 0x6D89E7, 0x6D89E8, 0x6D89E9, 0x6D89EA, 0x6D89EB, 0x6D89EC, 0x6D89ED, 0x6E1EB1, 0x6EBAF1, 0x6F5731, 0x6FF371, 0x708FB1, 0x712BF1, 0x71C831, 0x726471, 0x7300B1, 0x739CF1, 0x743931, 0x74D571, 0x7571B1, 0x760DF1, 0x76AA31, 0x774671, 0x77E2B1, 0x787EF1, 0x791B31, 0x79B771, 0x79B839, 0x79B901, 0x79B9C9, 0x79BA91, 0x79BB59, 0x79BC21, 0x79BCE9, 0x79BDB1, 0x79BE79, 0x79BF41, 0x79C009, 0x79C0D1, 0x79C199, 0x79C261, 0x79C329, 0x79C3F1, 0x79C4B9, 0x79C581, 0x79C649, 0x79C711, 0x79C7D9, 0x79C8A1, 0x79C969, 0x79CA31, 0x79CAF9, 0x79CBC1, 0x79CC89, 0x79CD51, 0x79CE19, 0x79CEE1, 0x79CFA9, 0x79D071, 0x79D139, 0x79D201, 0x79D2C9, 0x79D391, 0x79D459, 0x79D521, 0x79D5E9, 0x79D6B1, 0x79D779, 0x79D841, 0x79D909, 0x79D9D1, 0x79DA99, 0x79DB61, 0x79DC29, 0x79DCF1, 0x79DDB9, 0x79DE81, 0x79DF49, 0x79E011, 0x79E0D9, 0x79E1A1, 0x79E269, 0x79E331, 0x79E3F9, 0x79E4C1, 0x79E589, 0x79E651, 0x79E719, 0x79E7E1, 0x79E8A9, 0x79E971, 0x79EA39, 0x79EB01, 0x79EBC9, 0x79EC91, 0x79ED59, 0x79EE21, 0x79EEE9, 0x79EFB1, 0x79F079, 0x79F141, 0x79F209, 0x79F2D1, 0x79F399, 0x79F461, 0x79F529, 0x79F5F1, 0x79F6B9, 0x79F781, 0x79F849, 0x79F911, 0x79F9D9, 0x79FAA1, 0x79FB69, 0x79FC31, 0x79FCF9, 0x79FDC1, 0x79FE89, 0x79FF51, 0x7A0019, 0x7A00E1, 0x7A01A9, 0x7A0271, 0x7A0339, 0x7A0401, 0x7A04C9, 0x7A0591, 0x7A0659, 0x7A0721, 0x7A07E9, 0x7A08B1, 0x7A0979, 0x7A0A41, 0x7A0B09, 0x7A0BD1, 0x7A0C99, 0x7A0D61, 0x7A0E29, 0x7A0EF1, 0x7A0FB9, 0x7A1081, 0x7A1149, 0x7A114A, 0x7A114B, 0x7A114C, 0x7A114D, 0x7A114E, 0x7A114F, 0x7A1150, 0x7A1151, 0x7A1152, 0x7A1153, 0x7A1154, 0x7A1155, 0x7A1156, 0x7A1157, 0x7A1158, 0x7A1159, 0x7A115A, 0x7A115B, 0x7A115C, 0x7A115D, 0x7A115E, 0x7A115F, 0x7A1160, 0x7A1161, 0x7A1162, 0x7A1163, 0x7A1164, 0x7A1165, 0x7A1166, 0x7A1167, 0x7A1168, 0x7A1169, 0x7A116A, 0x7A116B, 0x7A116C, 0x7A116D, 0x7A116E, 0x7A116F, 0x7A1170, 0x7A1171, 0x7A1172, 0x7A1173, 0x7A1174, 0x7A1175, 0x7A1176, 0x7A1177, 0x7A1178, 0x7A1179, 0x7A117A, 0x7A117B, 0x7A117C, 0x7A117D, 0x7A117E, 0x7A117F, 0x7A1180, 0x7A1181, 0x7A1182, 0x7A1183, 0x7A1184, 0x7A1185, 0x7A1186, 0x7A1187, 0x7A1188, 0x7A1189, 0x7A118A, 0x7A118B, 0x7A118C, 0x7A118D, 0x7A118E, 0x7A118F, 0x7A1190, 0x7A1191, 0x7A1192, 0x7A1193, 0x7A1194, 0x7A1195, 0x7A1196, 0x7A1197, 0x7A1198, 0x7A1199, 0x7A119A, 0x7A119B, 0x7A119C, 0x7A119D, 0x7A119E, 0x7A119F, 0x7A11A0, 0x7A11A1, 0x7A11A2, 0x7A11A3, 0x7A11A4, 0x7A11A5, 0x7A11A6, 0x7A11A7, 0x7A11A8, 0x7A11A9, 0x7A11AA, 0x7A11AB, 0x7A11AC, 0x7A11AD, 0x7A11AE, 0x7A11AF, 0x7A11B0, 0x7A11B1, 0x7A11B2, 0x7A11B3, 0x7A11B4, 0x7A11B5, 0x7A11B6, 0x7A11B7, 0x7A11B8, 0x7A11B9, 0x7A11BA, 0x7A11BB, 0x7A11BC, 0x7A11BD, 0x7A11BE, 0x7A11BF, 0x7A11C0, 0x7A11C1, 0x7A11C2, 0x7A11C3, 0x7A11C4, 0x7A11C5, 0x7A11C6, 0x7A11C7, 0x7A11C8, 0x7A11C9, 0x7A11CA, 0x7A11CB, 0x7A11CC, 0x7A11CD, 0x7A11CE, 0x7A11CF, 0x7A11D0, 0x7A11D1, 0x7A11D2, 0x7A11D3, 0x7A11D4, 0x7A11D5, 0x7A11D6, 0x7A11D7, 0x7A11D8, 0x7A11D9, 0x7A11DA, 0x7A11DB, 0x7A11DC, 0x7A11DD, 0x7A11DE, 0x7A11DF, 0x7A11E0, 0x7A11E1, 0x7A11E2, 0x7A11E3, 0x7A11E4, 0x7A11E5, 0x7A11E6, 0x7A11E7, 0x7A11E8, 0x7A11E9, 0x7A11EA, 0x7A11EB, 0x7A11EC, 0x7A11ED, 0x7A11EE, 0x7A11EF, 0x7A11F0, 0x7A11F1, 0x7A11F2, 0x7A11F3, 0x7A11F4, 0x7A11F5, 0x7A11F6, 0x7A11F7, 0x7A11F8, 0x7A11F9, 0x7A11FA, 0x7A11FB, 0x7A11FC, 0x7A11FD, 0x7A11FE, 0x7A11FF]
main(199,199,199) print('Spirit{'+''.join(['RLFBUD'[x] for x in q[2:][::-1]])+'}')
|