class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.q: G = None
        self.v: D = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: C = None
        self.w: E = None
        self.p: A = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: C = None
        self.z: F = None
        self.q: E = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: F = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: F = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: C = None
        self.w: E = None
        self.p: A = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: C = None
        self.z: F = None
        self.q: E = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: F = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: F = None
        self.q: A = None
        self.txt = txt

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

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