from Crypto.Util.number import *
s = '震兑巽艮艮兑巽兑震兑艮坤坎坎巽兑震乾离震震坎巽震震兑离震巽兑巽艮兑坎艮离艮巽坤兑震乾艮震离巽坤乾兑震离震离乾艮艮兑坎乾震巽巽坎坎震乾离震震巽艮震兑坎乾离艮巽艮离兑坎巽震乾兑巽离兑巽艮艮兑兑巽巽震乾艮震兑巽艮坎震乾艮震震坎坤坎'
table= {'坤':'7',
'艮':'6',
'坎':'5',
'巽':'4',
'震':'3',
'离':'2',
'兑':'1',
'乾':'0',
}
s2 = ''
for c in s:
print(table[c],end='')
s2 += table[c]
print('')
s3 = int(s2,8)
print(s3)
print(long_to_bytes(s3))