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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: C = None
        self.o: C = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: C = None
        self.o: C = None
        self.txt = txt

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

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