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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: G = None
        self.y: B = None
        self.w: H = None
        self.q: F = None
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: A = None
        self.v: D = None
        self.o: D = None
        self.r: C = None
        self.z: I = None
        self.q: E = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: B = None
        self.w: D = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: G = None
        self.y: B = None
        self.w: H = None
        self.q: F = None
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: A = None
        self.v: D = None
        self.o: D = None
        self.r: C = None
        self.z: I = None
        self.q: E = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: B = None
        self.w: D = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

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

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