class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: G = None
        self.v: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: G = None
        self.z: D = None
        self.p: B = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: F = None
        self.z: B = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: G = None
        self.z: D = None
        self.p: B = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: F = None
        self.z: B = None
        self.q: D = None
        self.txt = txt

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

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