class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: G = None
        self.u: D = None
        self.s: D = None
        self.z: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: D = None
        self.s: A = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.p: B = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: C = None
        self.u: C = None
        self.q: D = None
        self.y: C = None
        self.r: F = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: H = None
        self.p: G = None
        self.x: G = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: G = None
        self.r: B = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: D = None
        self.s: A = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.p: B = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: C = None
        self.u: C = None
        self.q: D = None
        self.y: C = None
        self.r: F = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: H = None
        self.p: G = None
        self.x: G = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: G = None
        self.r: B = None
        self.v: A = None
        self.txt = txt

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

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