class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: F = None
        self.s: G = None
        self.w: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: H = None
        self.z: E = None
        self.u: G = None
        self.t: E = None
        self.x: F = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: H = None
        self.z: E = None
        self.u: G = None
        self.t: E = None
        self.x: F = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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

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