private static byte[] best = new byte[256]{
0, 17, 34, 51, 68, 85, 102, 119, 136, 153, 170, 187, 204, 221, 238, 255, // 00, 11, ... FF.
1, 18, 35, 52, 69, 86, 103, 120, 137, 154, 171, 188, 205, 222, 239, 240, // 01, 12, ... F0.
15, 16, 33, 50, 67, 84, 101, 118, 135, 152, 169, 186, 203, 220, 237, 254, // 0F, 10, ... FE.
2, 19, 36, 53, 70, 87, 104, 121, 138, 155, 172, 189, 206, 223, 224, 241, // 02, 13, ... F1.
14, 31, 32, 49, 66, 83, 100, 117, 134, 151, 168, 185, 202, 219, 236, 253, // 0E, 1F, ... FD.
3, 20, 37, 54, 71, 88, 105, 122, 139, 156, 173, 190, 207, 208, 225, 242, // 03, 14, ... F2.
13, 30, 47, 48, 65, 82, 99, 116, 133, 150, 167, 184, 201, 218, 235, 252, // 0D, 1E, ... FC.
4, 21, 38, 55, 72, 89, 106, 123, 140, 157, 174, 191, 192, 209, 226, 243, // 04, 15, ... F3.
12, 29, 46, 63, 64, 81, 98, 115, 132, 149, 166, 183, 200, 217, 234, 251, // 0C, 1D, ... FB.
5, 22, 39, 56, 73, 90, 107, 124, 141, 158, 175, 176, 193, 210, 227, 244, // 05, 16, ... F4.
11, 28, 45, 62, 79, 80, 97, 114, 131, 148, 165, 182, 199, 216, 233, 250, // 0B, 1C, ... FA.
6, 23, 40, 57, 74, 91, 108, 125, 142, 159, 160, 177, 194, 211, 228, 245, // 06, 17, ... F5.
10, 27, 44, 61, 78, 95, 96, 113, 130, 147, 164, 181, 198, 215, 232, 249, // 0A, 1B, ... F9.
7, 24, 41, 58, 75, 92, 109, 126, 143, 144, 161, 178, 195, 212, 229, 246, // 07, 18, ... F6.
9, 26, 43, 60, 77, 94, 111, 112, 129, 146, 163, 180, 197, 214, 231, 248, // 09, 1A, ... F8.
8, 25, 42, 59, 76, 93, 110, 127, 128, 145, 162, 179, 196, 213, 230, 247 // 08, 19, ... F7.
};
0, 17, 34, 51, 68, 85, 102, 119, 136, 153, 170, 187, 204, 221, 238, 255, // 00, 11, ... FF.
1, 18, 35, 52, 69, 86, 103, 120, 137, 154, 171, 188, 205, 222, 239, 240, // 01, 12, ... F0.
15, 16, 33, 50, 67, 84, 101, 118, 135, 152, 169, 186, 203, 220, 237, 254, // 0F, 10, ... FE.
2, 19, 36, 53, 70, 87, 104, 121, 138, 155, 172, 189, 206, 223, 224, 241, // 02, 13, ... F1.
14, 31, 32, 49, 66, 83, 100, 117, 134, 151, 168, 185, 202, 219, 236, 253, // 0E, 1F, ... FD.
3, 20, 37, 54, 71, 88, 105, 122, 139, 156, 173, 190, 207, 208, 225, 242, // 03, 14, ... F2.
13, 30, 47, 48, 65, 82, 99, 116, 133, 150, 167, 184, 201, 218, 235, 252, // 0D, 1E, ... FC.
4, 21, 38, 55, 72, 89, 106, 123, 140, 157, 174, 191, 192, 209, 226, 243, // 04, 15, ... F3.
12, 29, 46, 63, 64, 81, 98, 115, 132, 149, 166, 183, 200, 217, 234, 251, // 0C, 1D, ... FB.
5, 22, 39, 56, 73, 90, 107, 124, 141, 158, 175, 176, 193, 210, 227, 244, // 05, 16, ... F4.
11, 28, 45, 62, 79, 80, 97, 114, 131, 148, 165, 182, 199, 216, 233, 250, // 0B, 1C, ... FA.
6, 23, 40, 57, 74, 91, 108, 125, 142, 159, 160, 177, 194, 211, 228, 245, // 06, 17, ... F5.
10, 27, 44, 61, 78, 95, 96, 113, 130, 147, 164, 181, 198, 215, 232, 249, // 0A, 1B, ... F9.
7, 24, 41, 58, 75, 92, 109, 126, 143, 144, 161, 178, 195, 212, 229, 246, // 07, 18, ... F6.
9, 26, 43, 60, 77, 94, 111, 112, 129, 146, 163, 180, 197, 214, 231, 248, // 09, 1A, ... F8.
8, 25, 42, 59, 76, 93, 110, 127, 128, 145, 162, 179, 196, 213, 230, 247 // 08, 19, ... F7.
};