from string import ascii_lowercase, ascii_uppercase s = input() if len(s) > 32 or s[0] in ['_', '-'] or s[-1] in ['_', '-']: print(400) elif all((c in ascii_lowercase or c in ascii_uppercase or c in '0123456789' or c in ['_', '-']) for c in s): print(200) else: print(400)