def mystery(x):
if type(x) is not int or x <= 10:
return False
s = str(x)
return x * 6 == int(s[-1] + s[:-1])
def mystery(x):
if type(x) is not int or x <= 9999:
return False
s = str(x)
return x * 4 == int(s[-1] + s[:-1])
def mystery(x):
if type(x) is not int or x < 10**50:
return False
s = str(x)
return x * 3 == int(s[2:] + s[:2])
def mystery(x):
if type(x) is not int or x < 10**18:
return False
s = str(x)
return int(s[::-1]) == x * 9
def mystery(x):
if type(x) is not str or len(x) > 300:
return False
if any(c in x for c in ['"', "'", 'chr', 'eval', 'exec', 'import']):
return False
try:
return eval(x) == x
except:
return False
def mystery(x):
if type(x) is not int or x < 10**17:
return False
s = str(x)
return x * 2 == int(s[-1] + s[:-1])
def mystery(x):
if type(x) is not int or x <= 10**40:
return False
return pow(x, x, 10**40) == x % 10**40 and x % 10 == 6
def mystery(x):
if type(x) is not int or x < 10**17:
return False
s = str(x)
return x * 5 == int(s[-1] + s[:-1])
def mystery(x):
if type(x) is not list or len(x) != 60:
return False
if not all(type(i) is int for i in x):
return False
return all(x.count(i) + 2 == x[i] for i in range(60))
def mystery(x):
if type(x) is not int or x < 10**27:
return False
s = str(x)
return x * 3 == int(s[-1] + s[:-1])