<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def nein(x):
    "this is 'not' but not is a keyword so it's 'nein'"
    if not isinstance(x,(bool,ThreeVL)): raise TypeError(type(x))
    return not x if isinstance(x,bool) else ThreeVL(dict(t='f',f='t',u='u')[x.value])