class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.z: D = None
        self.s: I = None
        self.x: G = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: F = None
        self.w: A = None
        self.v: D = None
        self.u: H = None
        self.s: A = None
        self.x: I = None
        self.y: G = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: I = None
        self.y: H = None
        self.x: F = None
        self.r: B = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: B = None
        self.o: I = None
        self.t: A = None
        self.u: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: F = None
        self.w: A = None
        self.v: D = None
        self.u: H = None
        self.s: A = None
        self.x: I = None
        self.y: G = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: I = None
        self.y: H = None
        self.x: F = None
        self.r: B = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: B = None
        self.o: I = None
        self.t: A = None
        self.u: H = None
        self.txt = txt

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

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