class A:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: I = None
        self.q: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.y: B = None
        self.u: E = None
        self.t: E = None
        self.s: E = None
        self.z: D = None
        self.r: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: A = None
        self.p: H = None
        self.y: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.y: B = None
        self.u: E = None
        self.t: E = None
        self.s: E = None
        self.z: D = None
        self.r: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: A = None
        self.p: H = None
        self.y: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

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

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

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