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

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: D = None
        self.q: E = None
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: A = None
        self.r: B = None
        self.u: E = None
        self.o: H = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: D = None
        self.q: E = None
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: A = None
        self.r: B = None
        self.u: E = None
        self.o: H = None
        self.y: G = None
        self.txt = txt

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

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

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

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