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
| from pwn import * import hashlib from string import ascii_letters, digits from itertools import product
def dif(a, b): cnt = 0 for i in range(len(a)): if a[i] != b[i]: cnt += 1 return cnt
table = ascii_letters + digits
context.log_level = 'debug' questions = [ '( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)', '( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 0 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 0 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 0 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 0 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 0 and B3 == 1 and B4 == 1 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 0 and B4 == 1 and B5 == 1) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 0 and B5 == 0) or ( B0 == 1 and B1 == 1 and B2 == 1 and B3 == 1 and B4 == 1 and B5 == 1)'] questions = [i.replace(')', ' )') for i in questions] dic = ['00000000000000', '00000111010001', '00001001110011', '00001110100010', '00010011100110', '00010100110111', '00011010010101', '00011101000100', '00100000011101', '00100111001100', '00101001101110', '00101110111111', '00110011111011', '00110100101010', '00111010001000', '00111101011001', '01000000111010', '01000111101011', '01001001001001', '01001110011000', '01010011011100', '01010100001101', '01011010101111', '01011101111110', '01100000100111', '01100111110110', '01101001010100', '01101110000101', '01110011000001', '01110100010000', '01111010110010', '01111101100011', '10000001110100', '10000110100101', '10001000000111', '10001111010110', '10010010010010', '10010101000011', '10011011100001', '10011100110000', '10100001101001', '10100110111000', '10101000011010', '10101111001011', '10110010001111', '10110101011110', '10111011111100', '10111100101101', '11000001001110', '11000110011111', '11001000111101', '11001111101100', '11010010101000', '11010101111001', '11011011011011', '11011100001010', '11100001010011', '11100110000010', '11101000100000', '11101111110001', '11110010110101', '11110101100100', '11111011000110', '11111100010111']
r = remote('1.13.154.182', 30310)
proof = r.recvuntil(b'Give me XXXX: ') print(proof) tail = proof[12:28].decode() _hash = proof[33:97].decode() print(tail) print(_hash) print('开始爆破!') for i in product(table, repeat=4): head = ''.join(i) t = hashlib.sha256((head + tail).encode()).hexdigest() if t == _hash: r.sendline(head.encode()) print('爆破成功!结果是:', end='') print(head) break
for i in range(50): msg = '' for j in range(14): r.sendlineafter("Question: ", questions[j]) r.recvuntil("Answer: ") if b'True' in r.recvuntil("!"): msg += '1' else: msg += '0' for j in range(64): if (dif(msg, dic[j]) <= 2): break ans = "" for k in dic[j][:6]: ans += k + " " r.sendlineafter("chests:", ans) r.interactive()
|