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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: A = None
        self.x: D = None
        self.o: A = None
        self.r: D = None
        self.p: D = None
        self.q: E = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: B = None
        self.t: B = None
        self.q: H = None
        self.v: G = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: G = None
        self.q: H = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: G = None
        self.q: G = None
        self.u: C = None
        self.txt = txt

l = A("l")
f = B("f")
a = C("a")
g = D("g")
c = E("c")
d = F("d")
n = G("n")
m = H("m")
i = H("i")
e = E("e")

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: A = None
        self.x: D = None
        self.o: A = None
        self.r: D = None
        self.p: D = None
        self.q: E = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: B = None
        self.t: B = None
        self.q: H = None
        self.v: G = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: G = None
        self.q: H = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: G = None
        self.q: G = None
        self.u: C = None
        self.txt = txt

l = A("l")
f = B("f")
a = C("a")
g = D("g")
c = E("c")
d = F("d")
n = G("n")
m = H("m")
i = H("i")
e = E("e")

l.z = a
l.x = d
l.o = g
f.u = c
f.z = l
f.o = l
f.x = g
f.r = g
f.p = g
f.s = g
f.q = e
a.z = d
a.o = f
a.t = f
a.q = i
a.v = n
a.r = c
g.t = d
g.y = d
c.z = g
c.s = n
c.q = m
c.p = m
d.t = i
d.y = a
n.y = m
n.o = m
n.z = l
n.s = d
m.t = f
m.r = n
m.q = n
m.u = a
i.t = f
i.r = n
i.q = n
i.u = a
e.z = g
e.s = n
e.q = m
e.p = i
assert d.y.q.u.v.s.t.t.txt == "f"