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

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

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: F = None
        self.o: C = None
        self.r: G = None
        self.z: C = None
        self.u: H = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: F = None
        self.o: C = None
        self.r: G = None
        self.z: C = None
        self.u: H = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: C = None
        self.txt = txt

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

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

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

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