class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: H = None
        self.s: E = None
        self.q: I = None
        self.u: H = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: D = None
        self.w: D = None
        self.t: F = None
        self.q: B = None
        self.o: F = None
        self.v: H = None
        self.p: E = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: C = None
        self.q: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: F = None
        self.w: E = None
        self.s: I = None
        self.z: G = None
        self.q: F = None
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: C = None
        self.w: F = None
        self.o: D = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: E = None
        self.y: B = None
        self.v: F = None
        self.z: C = None
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: D = None
        self.w: D = None
        self.t: F = None
        self.q: B = None
        self.o: F = None
        self.v: H = None
        self.p: E = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: C = None
        self.q: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: F = None
        self.w: E = None
        self.s: I = None
        self.z: G = None
        self.q: F = None
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: C = None
        self.w: F = None
        self.o: D = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: E = None
        self.y: B = None
        self.v: F = None
        self.z: C = None
        self.w: H = None
        self.txt = txt

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

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