class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: H = None
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: D = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: C = None
        self.z: C = None
        self.y: H = None
        self.o: F = None
        self.s: A = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: C = None
        self.p: G = None
        self.r: D = None
        self.s: C = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: H = None
        self.z: A = None
        self.q: H = None
        self.u: G = None
        self.t: H = None
        self.txt = txt

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

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

e = A("e")
j = B("j")
f = C("f")
k = D("k")
n = E("n")
a = F("a")
h = G("h")
l = H("l")

e.o = k
e.z = l
e.t = a
j.o = e
j.u = l
f.x = e
f.y = k
f.t = h
k.v = h
k.u = f
k.z = f
k.y = l
k.o = a
k.s = e
k.q = j
k.x = n
n.w = h
n.p = h
n.v = f
n.s = f
n.r = k
n.t = a
a.p = k
a.y = l
a.q = l
a.t = l
a.z = e
a.u = h
h.y = j
h.o = j
h.r = k
h.t = k
h.v = e
h.x = f
h.s = a
h.z = n
l.v = f
l.z = f
l.u = f
l.t = j
l.o = n
l.w = k
assert h.y.o.z.w.s.z.txt == "
class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: H = None
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: D = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: C = None
        self.z: C = None
        self.y: H = None
        self.o: F = None
        self.s: A = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: C = None
        self.p: G = None
        self.r: D = None
        self.s: C = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: H = None
        self.z: A = None
        self.q: H = None
        self.u: G = None
        self.t: H = None
        self.txt = txt

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

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

e = A("e")
j = B("j")
f = C("f")
k = D("k")
n = E("n")
a = F("a")
h = G("h")
l = H("l")

e.o = k
e.z = l
e.t = a
j.o = e
j.u = l
f.x = e
f.y = k
f.t = h
k.v = h
k.u = f
k.z = f
k.y = l
k.o = a
k.s = e
k.q = j
k.x = n
n.w = h
n.p = h
n.v = f
n.s = f
n.r = k
n.t = a
a.p = k
a.y = l
a.q = l
a.t = l
a.z = e
a.u = h
h.y = j
h.o = j
h.r = k
h.t = k
h.v = e
h.x = f
h.s = a
h.z = n
l.v = f
l.z = f
l.u = f
l.t = j
l.o = n
l.w = k
assert h.y.o.z.w.s.z.txt == "l"