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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.v: G = None
        self.p: H = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: I = None
        self.x: G = None
        self.z: I = None
        self.w: F = None
        self.t: I = None
        self.o: H = None
        self.q: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

c = A("c")
h = B("h")
g = C("g")
a = D("a")
k = E("k")
d = F("d")
b = G("b")
m = H("m")
f = I("f")
e = B("e")

c.z = e
c.o = m
h.w = f
h.v = b
h.p = m
h.x = a
g.s = a
g.p = f
g.z = f
g.t = f
g.x = b
g.w = d
g.o = m
g.q = h
a.u = k
a.r = b
a.t = b
a.w = c
a.o = c
k.x = m
k.v = d
k.s = g
k.t = e
d.r = g
d.o = g
d.x = b
d.w = b
d.q = m
d.v = f
d.s = f
d.u = c
b.t = k
m.q = g
f.u = c
e.w = f
e.v = b
e.p = m
e.x = a
assert d.v.u.z.v.txt == "
class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.v: G = None
        self.p: H = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: I = None
        self.x: G = None
        self.z: I = None
        self.w: F = None
        self.t: I = None
        self.o: H = None
        self.q: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

c = A("c")
h = B("h")
g = C("g")
a = D("a")
k = E("k")
d = F("d")
b = G("b")
m = H("m")
f = I("f")
e = B("e")

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