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

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: G = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: A = None
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: F = None
        self.y: A = None
        self.u: D = None
        self.r: A = None
        self.q: D = None
        self.z: F = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: G = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: A = None
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: F = None
        self.y: A = None
        self.u: D = None
        self.r: A = None
        self.q: D = None
        self.z: F = None
        self.s: F = None
        self.txt = txt

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

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