class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: G = None
        self.z: H = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: J = None
        self.p: J = None
        self.z: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: G = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: B = None
        self.s: E = None
        self.y: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: F = None
        self.txt = txt

a = A("a")
h = B("h")
k = C("k")
j = D("j")
d = E("d")
e = F("e")
l = G("l")
f = H("f")
b = I("b")
i = J("i")

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: J = None
        self.p: J = None
        self.z: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: G = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: B = None
        self.s: E = None
        self.y: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: F = None
        self.txt = txt

a = A("a")
h = B("h")
k = C("k")
j = D("j")
d = E("d")
e = F("e")
l = G("l")
f = H("f")
b = I("b")
i = J("i")

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