class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: E = None
        self.w: C = None
        self.r: F = None
        self.q: I = None
        self.s: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: F = None
        self.o: F = None
        self.y: B = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: G = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: H = None
        self.u: I = None
        self.r: B = None
        self.p: A = None
        self.z: G = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: B = None
        self.w: C = None
        self.r: A = None
        self.v: E = None
        self.y: D = None
        self.z: F = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: F = None
        self.o: F = None
        self.y: B = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: G = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: H = None
        self.u: I = None
        self.r: B = None
        self.p: A = None
        self.z: G = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: B = None
        self.w: C = None
        self.r: A = None
        self.v: E = None
        self.y: D = None
        self.z: F = None
        self.s: B = None
        self.txt = txt

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

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

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