S = input() allow_list = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_0123456789' check = 1 for i in S[1:len(S)-1]: if i not in allow_list: check -= 1 break if (S[0] == '-' or S[0] == '_') or (S[-1] == '-' or S[-1] == '_'): check -= 1 if check != 1: print(400) else: print(200)