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