class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: J = None
        self.z: G = None
        self.q: G = None
        self.x: F = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: I = None
        self.v: G = None
        self.s: E = None
        self.q: I = None
        self.o: D = None
        self.u: I = None
        self.r: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: I = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: J = None
        self.q: C = None
        self.y: E = None
        self.t: A = None
        self.z: J = None
        self.s: H = None
        self.w: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: B = None
        self.q: F = None
        self.u: G = None
        self.t: E = None
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: I = None
        self.u: F = None
        self.y: D = None
        self.r: C = None
        self.t: D = None
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: I = None
        self.v: G = None
        self.s: E = None
        self.q: I = None
        self.o: D = None
        self.u: I = None
        self.r: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: I = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: J = None
        self.q: C = None
        self.y: E = None
        self.t: A = None
        self.z: J = None
        self.s: H = None
        self.w: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: B = None
        self.q: F = None
        self.u: G = None
        self.t: E = None
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: I = None
        self.u: F = None
        self.y: D = None
        self.r: C = None
        self.t: D = None
        self.z: G = None
        self.txt = txt

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

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