str=raw_input("Escriba: ") b=[] d=[] c=list(str) for i in c: a=i.upper() if i==a: b.append(i) e=i.lower() if i==e: d.append(i) print b print d