def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 15:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h = 0
for i, c in enumerate(x):
h = (h + ord(c) * pow(2, i, p)) % p
return h == 2555841
def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 10:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h = 0
for i, c in enumerate(x):
h = (h + ord(c) * pow(3, i, p)) % p
s = sum(ord(c) for c in x)
h = (h * s) % p
return h == 582037582
def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 12:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h1 = 0
for i, c in enumerate(x):
h1 = (h1 + ord(c) * pow(2, i, p)) % p
h2 = 1
for c in x:
h2 = (h2 * (ord(c) - 64)) % p
return (h1 ^ h2) == 574495075
def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 10:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h = 0
for i, c in enumerate(x):
h = (h + ord(c) * pow(7, i, p)) % p
s = sum(ord(c) for c in x)
h = (h * s) % p
return h == 223976883
def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 8:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h1 = 0
for i, c in enumerate(x):
h1 = (h1 + ord(c) * pow(11, i, p)) % p
h2 = 1
for c in x:
h2 = (h2 * (ord(c) - 64)) % p
return (h1 * h2) % p == 593814679
def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 10:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h = 0
for i, c in enumerate(x):
h = (h + ord(c) * pow(19, i, p)) % p
s = sum(ord(c) for c in x)
h = (h * s) % p
return h == 865488182
def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 12:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h1 = 1
h2 = 0
for c in x:
a = ord(c) - 64
h1 = (h1 * a + ord(c)) % p
h2 = (h2 * 31 + ord(c)) % p
return (h1 ^ h2) == 926428406
def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 10:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h = 0
for i, c in enumerate(x):
h = (h + ord(c) * pow(13, i, p)) % p
s = sum(ord(c) for c in x)
h = (h * s) % p
return h == 769983868
def mystery(x):
if not isinstance(x, str):
return False
if len(x) != 13:
return False
if not all('A' <= c <= 'Z' for c in x):
return False
p = 1000000007
h1 = 0
for i, c in enumerate(x):
h1 = (h1 + ord(c) * pow(3, i, p)) % p
h2 = 0
for i, c in enumerate(x):
h2 = (h2 + ord(c) * pow(5, i, p)) % p
h3 = 1
for c in x:
h3 = (h3 * (ord(c) - 64)) % p
return (h1 * h2 + h3) % p == 411758156
def mystery(x):
if not isinstance(x, int):
return False
p = 1000000007
val = (pow(x, 10, p) + 2 * pow(x, 9, p) + 3 * pow(x, 8, p) + 5 * pow(x, 7, p) + 7 * pow(x, 6, p) + 11 * pow(x, 5, p) + 13 * pow(x, 4, p) + 17 * pow(x, 3, p) + 19 * pow(x, 2, p) + 23 * x + 680862432) % p
return val == 0