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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: H = None
        self.w: D = None
        self.y: I = None
        self.o: H = None
        self.z: A = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.x: B = None
        self.o: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: C = None
        self.y: C = None
        self.v: B = None
        self.u: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: H = None
        self.w: D = None
        self.y: I = None
        self.o: H = None
        self.z: A = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.x: B = None
        self.o: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: C = None
        self.y: C = None
        self.v: B = None
        self.u: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

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