import sys input = sys.stdin.readline S=input().strip() if S[0]=="_" or S[0]=="-" or S[-1]=="_" or S[-1]=="-": print(400) else: flag=1 for s in S: if 65<=ord(s)<=90: continue if 97<=ord(s)<=122: continue if 48<=ord(s)<=57: continue if s=="_" or s=="-": continue flag=0 if flag==1: print(200) else: print(400)