word = 'CWYCWKAY'
word = word.replace(word[1], 'H')
word = word.replace(word[4], 'H')
word = word.replace(word[-1], 'K')
'CWYCWKAY'.replace('W', 'H').replace('AY', 'AN')'CWYCWKAY'.replace('W', 'H').replace('Y', 'N').replace('N', 'Y', 1)'CWYCWKAY'.translate(str.maketrans({'W': 'H', 'Y': 'N'})).replace('N', 'Y', 1)'CWYCWKAY'.translate({87: 'H', 89: 'N'}).replace('N', 'Y', 1)'CWYCWKAY'.replace('CWYCWKAY', 'CHYCHKAN')def replace(word='CWYCWKAY'):
return 'CHYCHKAN'