class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: H = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: F = None
        self.t: C = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: C = None
        self.p: G = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: F = None
        self.t: C = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: C = None
        self.p: G = None
        self.q: A = None
        self.txt = txt

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

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

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

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