class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: I = None
        self.o: G = None
        self.u: G = None
        self.q: C = None
        self.w: C = None
        self.v: H = None
        self.x: I = None
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: F = None
        self.p: F = None
        self.o: H = None
        self.z: H = None
        self.w: C = None
        self.s: A = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: E = None
        self.v: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: A = None
        self.y: F = None
        self.z: C = None
        self.p: D = None
        self.o: D = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: E = None
        self.q: H = None
        self.u: G = None
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: F = None
        self.p: F = None
        self.o: H = None
        self.z: H = None
        self.w: C = None
        self.s: A = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: E = None
        self.v: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: A = None
        self.y: F = None
        self.z: C = None
        self.p: D = None
        self.o: D = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: E = None
        self.q: H = None
        self.u: G = None
        self.w: H = None
        self.txt = txt

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

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