# -*- coding: utf-8 -*-
import random
s1 = "konnichiwa"
s2 = 'fuel'
s3= 'desperado'
tuple1 = (s1, s2, s3)
sourceword = random.choice(tuple1)
sourceword1 = sourceword
guessword = ''
while True:
if sourceword != '':
letternumber = random.randrange(len(sourceword))
guessword += sourceword[letternumber]
sourceword = sourceword[letternumber + 1:] + sourceword[:letternumber]
if sourceword == '':
print guessword
break
playerword = raw_input('Enter your guess\n')
playerword = playerword.lower()
while True:
if playerword != sourceword1 or playerword == '':
playerword = raw_input('Wrong. Try again\n')
if playerword == sourceword1:
print 'gratz'
break
raw_input('\n\nPr')
# your code goes here
IyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KaW1wb3J0IHJhbmRvbQpzMSA9ICJrb25uaWNoaXdhIgpzMiA9ICdmdWVsJwpzMz0gJ2Rlc3BlcmFkbycKdHVwbGUxID0gKHMxLCBzMiwgczMpCnNvdXJjZXdvcmQgPSByYW5kb20uY2hvaWNlKHR1cGxlMSkKc291cmNld29yZDEgPSBzb3VyY2V3b3JkCmd1ZXNzd29yZCA9ICcnCndoaWxlIFRydWU6CglpZiBzb3VyY2V3b3JkICE9ICcnOgoJCWxldHRlcm51bWJlciA9IHJhbmRvbS5yYW5kcmFuZ2UobGVuKHNvdXJjZXdvcmQpKQoJCWd1ZXNzd29yZCArPSBzb3VyY2V3b3JkW2xldHRlcm51bWJlcl0KCQlzb3VyY2V3b3JkID0gc291cmNld29yZFtsZXR0ZXJudW1iZXIgKyAxOl0gKyBzb3VyY2V3b3JkWzpsZXR0ZXJudW1iZXJdCglpZiBzb3VyY2V3b3JkID09ICcnOgoJCXByaW50IGd1ZXNzd29yZAoJCWJyZWFrCnBsYXllcndvcmQgPSByYXdfaW5wdXQoJ0VudGVyIHlvdXIgZ3Vlc3NcbicpCnBsYXllcndvcmQgPSBwbGF5ZXJ3b3JkLmxvd2VyKCkKd2hpbGUgVHJ1ZToKCWlmIHBsYXllcndvcmQgIT0gc291cmNld29yZDEgb3IgcGxheWVyd29yZCA9PSAnJzoKCQlwbGF5ZXJ3b3JkID0gcmF3X2lucHV0KCdXcm9uZy4gVHJ5IGFnYWluXG4nKQoJaWYgcGxheWVyd29yZCA9PSBzb3VyY2V3b3JkMToKCQlwcmludCAnZ3JhdHonCgkJYnJlYWsKcmF3X2lucHV0KCdcblxuUHInKQoJCSMgeW91ciBjb2RlIGdvZXMgaGVyZQ==