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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: H = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: H = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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