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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: E = None
        self.q: A = None
        self.o: D = None
        self.p: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: C = None
        self.t: A = None
        self.q: C = None
        self.u: J = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: D = None
        self.o: B = None
        self.p: D = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: D = None
        self.r: D = None
        self.s: I = None
        self.q: C = None
        self.x: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: F = None
        self.o: C = None
        self.z: H = None
        self.w: E = None
        self.p: G = None
        self.v: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: E = None
        self.q: A = None
        self.o: D = None
        self.p: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: C = None
        self.t: A = None
        self.q: C = None
        self.u: J = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: D = None
        self.o: B = None
        self.p: D = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: D = None
        self.r: D = None
        self.s: I = None
        self.q: C = None
        self.x: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: F = None
        self.o: C = None
        self.z: H = None
        self.w: E = None
        self.p: G = None
        self.v: C = None
        self.txt = txt

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

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