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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: E = None
        self.o: B = None
        self.w: E = None
        self.p: G = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: C = None
        self.s: D = None
        self.o: E = None
        self.w: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: G = None
        self.v: G = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

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

k.z = a
k.v = i
b.q = n
b.r = c
b.o = c
b.z = e
b.s = e
b.t = i
b.p = i
e.t = i
e.p = i
e.q = c
e.w = c
e.u = c
e.o = b
f.t = n
f.p = e
f.s = m
f.w = m
f.o = c
c.v = b
c.u = b
c.t = b
c.s = a
c.w = i
a.x = i
a.w = i
a.v = i
a.t = b
i.r = h
h.w = b
m.t = n
m.p = e
m.s = f
m.w = f
m.o = c
n.t = f
n.s = f
n.p = e
n.o = c
n.w = m
assert k.z.t.p.txt == "
class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: E = None
        self.o: B = None
        self.w: E = None
        self.p: G = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: C = None
        self.s: D = None
        self.o: E = None
        self.w: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: G = None
        self.v: G = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

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

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