class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: D = None
        self.y: E = None
        self.z: J = None
        self.u: F = None
        self.o: I = None
        self.r: J = None
        self.p: I = None
        self.s: C = None
        self.x: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: H = None
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: C = None
        self.w: E = None
        self.o: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: B = None
        self.w: G = None
        self.t: D = None
        self.x: J = None
        self.o: J = None
        self.p: B = None
        self.v: C = None
        self.q: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

l = A("l")
c = B("c")
m = C("m")
e = D("e")
h = E("h")
i = F("i")
n = G("n")
a = H("a")
k = I("k")
f = J("f")

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: H = None
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: C = None
        self.w: E = None
        self.o: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: B = None
        self.w: G = None
        self.t: D = None
        self.x: J = None
        self.o: J = None
        self.p: B = None
        self.v: C = None
        self.q: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

l = A("l")
c = B("c")
m = C("m")
e = D("e")
h = E("h")
i = F("i")
n = G("n")
a = H("a")
k = I("k")
f = J("f")

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