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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: B = None
        self.o: B = None
        self.p: E = None
        self.x: H = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: G = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.q: C = None
        self.y: B = None
        self.s: C = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: D = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: B = None
        self.o: B = None
        self.p: E = None
        self.x: H = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: G = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.q: C = None
        self.y: B = None
        self.s: C = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: D = None
        self.q: E = None
        self.txt = txt

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

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

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