import random

def scramble(word):
	scrambled = list(word)
	for x in range(len(word)):
		r = random.randint(0, len(word) - 1)
		temp = scrambled[x]
		scrambled[x] = scrambled[r]
		scrambled[r] = temp
	return scrambled

words = ['apple', 'dude', 'croquet', 'granted']

i = random.randint(0,len(words)-1)
word = words[i] 
scrambled = scramble(word)

print("Guess the Anagram")
print("".join(scrambled).upper())

while True:
	g = raw_input("Guess: ")
	print(g)

	if g == word: 
		print('Well done, you win!')
		break
	else: 
		print('Wrong answer dumbass!')