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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: G = None
        self.u: D = None
        self.x: B = None
        self.y: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: H = None
        self.w: H = None
        self.x: E = None
        self.s: H = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: G = None
        self.u: E = None
        self.p: D = None
        self.z: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: G = None
        self.u: D = None
        self.x: B = None
        self.y: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: H = None
        self.w: H = None
        self.x: E = None
        self.s: H = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: G = None
        self.u: E = None
        self.p: D = None
        self.z: E = None
        self.txt = txt

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

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