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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: A = None
        self.p: F = None
        self.v: C = None
        self.t: F = None
        self.o: D = None
        self.s: C = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: A = None
        self.z: D = None
        self.t: G = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: A = None
        self.z: G = None
        self.q: A = None
        self.y: H = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.p: B = None
        self.t: A = None
        self.q: A = None
        self.y: H = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: H = None
        self.x: H = None
        self.p: B = None
        self.t: E = None
        self.w: G = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: A = None
        self.p: F = None
        self.v: C = None
        self.t: F = None
        self.o: D = None
        self.s: C = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: A = None
        self.z: D = None
        self.t: G = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: A = None
        self.z: G = None
        self.q: A = None
        self.y: H = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.p: B = None
        self.t: A = None
        self.q: A = None
        self.y: H = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: H = None
        self.x: H = None
        self.p: B = None
        self.t: E = None
        self.w: G = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: E = None
        self.txt = txt

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

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

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