class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: C = None
        self.v: G = None
        self.u: H = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: H = None
        self.s: E = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: H = None
        self.t: E = None
        self.p: A = None
        self.u: F = None
        self.x: F = None
        self.s: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: H = None
        self.s: E = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: H = None
        self.t: E = None
        self.p: A = None
        self.u: F = None
        self.x: F = None
        self.s: H = None
        self.txt = txt

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

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

m.x = n
m.p = d
m.v = j
m.u = k
m.y = a
a.q = l
a.p = l
g.z = j
l.t = i
l.w = n
l.x = a
n.t = l
n.u = l
n.s = j
n.p = m
n.w = m
n.z = a
n.v = a
n.q = k
i.p = k
i.x = k
i.s = n
i.r = l
j.r = k
j.z = k
j.s = k
j.t = n
j.p = m
j.u = i
j.x = i
k.w = a
d.z = j
assert k.w.q.x.p.t.p.w.txt == "a"