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

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: H = None
        self.s: F = None
        self.q: C = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: F = None
        self.y: H = None
        self.x: G = None
        self.u: J = None
        self.z: G = None
        self.r: H = None
        self.t: H = None
        self.s: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: H = None
        self.s: F = None
        self.q: C = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: F = None
        self.y: H = None
        self.x: G = None
        self.u: J = None
        self.z: G = None
        self.r: H = None
        self.t: H = None
        self.s: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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