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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: G = None
        self.u: J = None
        self.w: C = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: F = None
        self.q: F = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.s: A = None
        self.x: F = None
        self.q: G = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: G = None
        self.u: J = None
        self.w: C = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: F = None
        self.q: F = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.s: A = None
        self.x: F = None
        self.q: G = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: C = None
        self.txt = txt

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

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