class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: B = None
        self.s: F = None
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.s: G = None
        self.p: G = None
        self.x: G = None
        self.t: C = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: A = None
        self.y: A = None
        self.s: H = None
        self.p: B = None
        self.o: H = None
        self.q: D = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: H = None
        self.z: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: B = None
        self.w: C = None
        self.x: G = None
        self.p: G = None
        self.v: B = None
        self.q: B = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: E = None
        self.txt = txt

e = A("e")
l = B("l")
n = C("n")
i = D("i")
f = E("f")
b = F("b")
k = G("k")
j = H("j")
a = H("a")

e.x = k
e.o = l
e.q = l
e.s = b
l.w = n
l.t = n
l.z = f
l.s = k
l.p = k
l.x = k
l.y = j
n.z = l
n.p = l
n.w = e
n.y = e
n.s = j
n.o = a
n.q = i
n.v = k
i.v = e
f.o = i
f.t = a
f.z = l
f.q = l
b.u = k
b.x = k
b.p = k
b.r = l
b.v = l
b.q = l
b.z = l
b.w = n
k.z = f
j.r = k
j.z = f
a.r = k
a.z = f
assert k.z.o.v.s.u.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: B = None
        self.s: F = None
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.s: G = None
        self.p: G = None
        self.x: G = None
        self.t: C = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: A = None
        self.y: A = None
        self.s: H = None
        self.p: B = None
        self.o: H = None
        self.q: D = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: H = None
        self.z: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: B = None
        self.w: C = None
        self.x: G = None
        self.p: G = None
        self.v: B = None
        self.q: B = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: E = None
        self.txt = txt

e = A("e")
l = B("l")
n = C("n")
i = D("i")
f = E("f")
b = F("b")
k = G("k")
j = H("j")
a = H("a")

e.x = k
e.o = l
e.q = l
e.s = b
l.w = n
l.t = n
l.z = f
l.s = k
l.p = k
l.x = k
l.y = j
n.z = l
n.p = l
n.w = e
n.y = e
n.s = j
n.o = a
n.q = i
n.v = k
i.v = e
f.o = i
f.t = a
f.z = l
f.q = l
b.u = k
b.x = k
b.p = k
b.r = l
b.v = l
b.q = l
b.z = l
b.w = n
k.z = f
j.r = k
j.z = f
a.r = k
a.z = f
assert k.z.o.v.s.u.txt == "k"