class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: G = None
        self.z: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: I = None
        self.t: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: F = None
        self.t: F = None
        self.y: F = None
        self.v: F = None
        self.q: E = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: H = None
        self.t: B = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: F = None
        self.t: H = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: D = None
        self.o: D = None
        self.w: G = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.w: B = None
        self.txt = txt

j = A("j")
m = B("m")
l = C("l")
g = D("g")
n = E("n")
d = F("d")
c = G("c")
a = H("a")
k = I("k")
e = G("e")

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: I = None
        self.t: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: F = None
        self.t: F = None
        self.y: F = None
        self.v: F = None
        self.q: E = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: H = None
        self.t: B = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: F = None
        self.t: H = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: D = None
        self.o: D = None
        self.w: G = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.w: B = None
        self.txt = txt

j = A("j")
m = B("m")
l = C("l")
g = D("g")
n = E("n")
d = F("d")
c = G("c")
a = H("a")
k = I("k")
e = G("e")

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