class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: J = None
        self.v: I = None
        self.o: B = None
        self.r: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: I = None
        self.x: J = None
        self.t: G = None
        self.s: D = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: J = None
        self.q: A = None
        self.t: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: G = None
        self.v: G = None
        self.p: C = None
        self.z: J = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: I = None
        self.x: J = None
        self.t: G = None
        self.s: D = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: J = None
        self.q: A = None
        self.t: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: G = None
        self.v: G = None
        self.p: C = None
        self.z: J = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

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