ameerkat
4/17/2012 - 12:41 AM

2012 Code Jam Qualifier A

2012 Code Jam Qualifier A

d = {}
s1 = "yeqz ejp mysljylc kd kxveddknmc re jsicpdrysi rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd de kr kd eoya kw aej tysr re ujdr lkgc jv"
s2 = "aozq our language is impossible to understand there are twenty six factorial possibilities so it is okay if you want to just give up"
for ch in range(len(s1)):
	d[s1[ch]] = s2[ch]
f = open("A.in")
t = int(f.readline().strip())
for i in range(1,t+1):
	print "Case #"+ str(i) + ": " + ''.join([(d[ch] if ch in d else ch) for ch in f.readline()]),