class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: C = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: H = None
        self.u: D = None
        self.t: D = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: H = None
        self.p: F = None
        self.t: H = None
        self.v: H = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: E = None
        self.q: E = None
        self.w: E = None
        self.v: A = None
        self.u: C = None
        self.p: E = None
        self.r: F = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.p: D = None
        self.y: F = None
        self.o: C = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: I = None
        self.r: G = None
        self.x: C = None
        self.y: I = None
        self.z: F = None
        self.txt = txt

h = A("h")
a = B("a")
k = C("k")
g = D("g")
b = E("b")
j = F("j")
l = G("l")
c = H("c")
f = I("f")
i = I("i")

h.q = k
h.w = k
h.s = f
a.v = h
a.y = c
a.u = g
a.t = g
a.o = b
k.r = g
k.y = c
k.t = c
k.v = c
k.p = j
k.z = a
g.s = j
g.r = j
g.t = b
g.q = b
g.w = b
g.p = b
g.v = h
g.u = k
g.x = i
b.r = h
b.z = f
j.t = l
j.x = l
j.v = l
j.q = a
j.o = a
j.s = a
j.u = c
j.p = b
j.y = k
l.t = k
l.w = a
l.q = c
c.z = i
c.p = g
c.y = j
c.o = k
c.t = h
f.t = c
f.s = i
f.y = i
f.r = l
f.x = k
f.z = j
i.t = c
i.s = f
i.y = f
i.r = l
i.x = k
i.z = j
assert a.o.z.z.txt == "
class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: C = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: H = None
        self.u: D = None
        self.t: D = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: H = None
        self.p: F = None
        self.t: H = None
        self.v: H = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: E = None
        self.q: E = None
        self.w: E = None
        self.v: A = None
        self.u: C = None
        self.p: E = None
        self.r: F = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.p: D = None
        self.y: F = None
        self.o: C = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: I = None
        self.r: G = None
        self.x: C = None
        self.y: I = None
        self.z: F = None
        self.txt = txt

h = A("h")
a = B("a")
k = C("k")
g = D("g")
b = E("b")
j = F("j")
l = G("l")
c = H("c")
f = I("f")
i = I("i")

h.q = k
h.w = k
h.s = f
a.v = h
a.y = c
a.u = g
a.t = g
a.o = b
k.r = g
k.y = c
k.t = c
k.v = c
k.p = j
k.z = a
g.s = j
g.r = j
g.t = b
g.q = b
g.w = b
g.p = b
g.v = h
g.u = k
g.x = i
b.r = h
b.z = f
j.t = l
j.x = l
j.v = l
j.q = a
j.o = a
j.s = a
j.u = c
j.p = b
j.y = k
l.t = k
l.w = a
l.q = c
c.z = i
c.p = g
c.y = j
c.o = k
c.t = h
f.t = c
f.s = i
f.y = i
f.r = l
f.x = k
f.z = j
i.t = c
i.s = f
i.y = f
i.r = l
i.x = k
i.z = j
assert a.o.z.z.txt == "j"