class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.w: I = None
        self.r: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: B = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: H = None
        self.q: B = None
        self.x: C = None
        self.w: I = None
        self.z: E = None
        self.p: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: B = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: H = None
        self.q: B = None
        self.x: C = None
        self.w: I = None
        self.z: E = None
        self.p: I = None
        self.txt = txt

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

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