import string allowed = set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + "0123456789" + "_-") id = input() result = 200 a = {"_", "-"} length = len(id) if length >= 1 and length <= 32: if id[0] not in a and id[-1] not in a: if any(c not in allowed for c in id): result = 400 else: result = 400 else: result = 400 print(result)