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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: F = None
        self.x: I = None
        self.q: I = None
        self.v: H = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: I = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: A = None
        self.s: I = None
        self.x: H = None
        self.o: D = None
        self.y: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: E = None
        self.z: D = None
        self.w: B = None
        self.q: E = None
        self.y: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: F = None
        self.x: I = None
        self.q: I = None
        self.v: H = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: I = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: A = None
        self.s: I = None
        self.x: H = None
        self.o: D = None
        self.y: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: E = None
        self.z: D = None
        self.w: B = None
        self.q: E = None
        self.y: D = None
        self.txt = txt

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

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