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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: J = None
        self.q: I = None
        self.o: E = None
        self.w: B = None
        self.t: I = None
        self.v: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: I = None
        self.t: H = None
        self.p: I = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.q: J = None
        self.r: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: G = None
        self.r: F = None
        self.x: A = None
        self.v: H = None
        self.p: G = None
        self.u: E = None
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: J = None
        self.q: I = None
        self.o: E = None
        self.w: B = None
        self.t: I = None
        self.v: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: I = None
        self.t: H = None
        self.p: I = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.q: J = None
        self.r: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: G = None
        self.r: F = None
        self.x: A = None
        self.v: H = None
        self.p: G = None
        self.u: E = None
        self.w: H = None
        self.txt = txt

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

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