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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: H = None
        self.o: I = None
        self.z: H = None
        self.t: H = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: G = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: A = None
        self.u: F = None
        self.v: B = None
        self.z: J = None
        self.s: I = None
        self.o: D = None
        self.r: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: E = None
        self.t: D = None
        self.x: E = None
        self.w: F = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: H = None
        self.o: I = None
        self.z: H = None
        self.t: H = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: G = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: A = None
        self.u: F = None
        self.v: B = None
        self.z: J = None
        self.s: I = None
        self.o: D = None
        self.r: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: E = None
        self.t: D = None
        self.x: E = None
        self.w: F = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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

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