class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: H = None
        self.r: F = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: F = None
        self.v: H = None
        self.s: A = None
        self.z: F = None
        self.o: F = None
        self.y: E = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: J = None
        self.o: F = None
        self.p: D = None
        self.v: D = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: I = None
        self.v: G = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: H = None
        self.v: H = None
        self.t: A = None
        self.o: I = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: E = None
        self.p: H = None
        self.s: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: F = None
        self.v: H = None
        self.s: A = None
        self.z: F = None
        self.o: F = None
        self.y: E = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: J = None
        self.o: F = None
        self.p: D = None
        self.v: D = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: I = None
        self.v: G = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: H = None
        self.v: H = None
        self.t: A = None
        self.o: I = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: E = None
        self.p: H = None
        self.s: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: A = None
        self.txt = txt

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

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