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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: B = None
        self.q: G = None
        self.x: A = None
        self.t: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: H = None
        self.r: B = None
        self.q: D = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: D = None
        self.x: E = None
        self.s: E = None
        self.w: C = None
        self.t: E = None
        self.z: C = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: B = None
        self.q: G = None
        self.x: A = None
        self.t: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: H = None
        self.r: B = None
        self.q: D = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: D = None
        self.x: E = None
        self.s: E = None
        self.w: C = None
        self.t: E = None
        self.z: C = None
        self.p: H = None
        self.txt = txt

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

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