class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: E = None
        self.y: G = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: C = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: D = None
        self.q: C = None
        self.t: H = None
        self.x: D = None
        self.w: A = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.z: C = None
        self.v: E = None
        self.y: C = None
        self.r: H = None
        self.x: E = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: C = None
        self.w: D = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: C = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: D = None
        self.q: C = None
        self.t: H = None
        self.x: D = None
        self.w: A = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.z: C = None
        self.v: E = None
        self.y: C = None
        self.r: H = None
        self.x: E = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: C = None
        self.w: D = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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