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

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

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.z: E = None
        self.v: B = None
        self.y: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: B = None
        self.w: D = None
        self.r: C = None
        self.t: B = None
        self.x: E = None
        self.z: B = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: B = None
        self.txt = txt

k = A("k")
m = B("m")
a = C("a")
g = D("g")
c = E("c")
f = F("f")
e = G("e")
i = H("i")

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.z: E = None
        self.v: B = None
        self.y: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: B = None
        self.w: D = None
        self.r: C = None
        self.t: B = None
        self.x: E = None
        self.z: B = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: B = None
        self.txt = txt

k = A("k")
m = B("m")
a = C("a")
g = D("g")
c = E("c")
f = F("f")
e = G("e")
i = H("i")

k.z = f
k.w = m
k.s = e
k.y = c
k.t = a
m.x = e
m.u = e
a.q = g
a.v = m
a.w = i
a.y = k
a.s = k
g.o = f
g.w = m
g.v = m
g.z = c
g.y = e
c.p = f
f.s = m
f.q = k
f.z = a
f.r = g
f.u = g
f.y = e
f.v = e
e.u = c
e.x = c
e.o = m
e.t = m
e.z = m
e.w = g
e.r = a
e.q = k
i.s = m
i.w = m
assert k.z.q.y.p.txt == "f"