Raj is suffering from shot term memory loss so  he is unable to remember his laptop password  but he has a list of some string and the only thing that he remember about his password is alphanumeric and also that all the characters are unique.
Given a list of strings, your task is to find a valid password.
-----Input-----
Each String contains lower case alphabets and 0-9.
-----Output-----
print "Invalid"(without quotes) if password is not valid else print "Valid"(without quotes) and stop processing input after it.
-----Constraints-----
1<=length of string <=100
-----Example-----
Input:
absdbads
asdjenfef
tyerbet
abc564
Output:
Invalid
Invalid
Invalid
Valid
def password():
 

 while True:
  str=input()
  ls=list(str)
  ln=len(str)
  c=0
  fl=0
  
  for i in range(0,ln):
   
   
   if(ord(ls[i])<=122 and ord(ls[i])>=97):
    c=1
    
   elif ls[i].isdigit():
    fl=1
  a=1
  for i in range(0,ln):
   
   for j in range(i+1,ln):
    if(ls[i]==ls[j]):
     a+=1 
  if(c==1 and fl==1 and a==1):
   print("\nValid")
   break
  else:
   print("\nInvalid")
 
  
password()
def password():
 

 while True:
  str=input()
  ls=list(str)
  ln=len(str)
  c=0
  fl=0
  
  for i in range(0,ln):
   
   
   if(ord(ls[i])<=122 and ord(ls[i])>=97):
    c=1
    
   elif ls[i].isdigit():
    fl=1
  a=1
  for i in range(0,ln):
   
   for j in range(i+1,ln):
    if(ls[i]==ls[j]):
     a+=1 
  if(c==1 and fl==1 and a==1):
   print("\nValid")
   break
  else:
   print("\nInvalid")
 
  
password()