class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: J = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: G = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: E = None
        self.p: G = None
        self.q: D = None
        self.u: B = None
        self.y: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: A = None
        self.v: C = None
        self.w: H = None
        self.x: J = None
        self.z: H = None
        self.o: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: C = None
        self.y: E = None
        self.o: E = None
        self.w: H = None
        self.x: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: J = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: G = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: E = None
        self.p: G = None
        self.q: D = None
        self.u: B = None
        self.y: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: A = None
        self.v: C = None
        self.w: H = None
        self.x: J = None
        self.z: H = None
        self.o: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: C = None
        self.y: E = None
        self.o: E = None
        self.w: H = None
        self.x: I = None
        self.txt = txt

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

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