class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: C = None
        self.y: E = None
        self.s: E = None
        self.v: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: I = None
        self.q: A = None
        self.o: E = None
        self.z: I = None
        self.x: I = None
        self.p: E = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: F = None
        self.w: I = None
        self.p: H = None
        self.z: H = None
        self.r: I = None
        self.q: E = None
        self.u: E = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: H = None
        self.u: A = None
        self.r: H = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: I = None
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: A = None
        self.o: G = None
        self.v: H = None
        self.z: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: I = None
        self.q: A = None
        self.o: E = None
        self.z: I = None
        self.x: I = None
        self.p: E = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: F = None
        self.w: I = None
        self.p: H = None
        self.z: H = None
        self.r: I = None
        self.q: E = None
        self.u: E = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: H = None
        self.u: A = None
        self.r: H = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: I = None
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: A = None
        self.o: G = None
        self.v: H = None
        self.z: F = None
        self.txt = txt

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

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