class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: I = None
        self.w: C = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: B = None
        self.t: I = None
        self.w: G = None
        self.x: I = None
        self.z: E = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: B = None
        self.u: I = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: C = None
        self.w: B = None
        self.t: F = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: B = None
        self.t: I = None
        self.w: G = None
        self.x: I = None
        self.z: E = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: B = None
        self.u: I = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: C = None
        self.w: B = None
        self.t: F = None
        self.s: C = None
        self.txt = txt

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

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