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

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: A = None
        self.x: A = None
        self.s: I = None
        self.p: H = None
        self.u: G = None
        self.o: B = None
        self.t: G = None
        self.y: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: B = None
        self.t: B = None
        self.x: F = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: A = None
        self.x: A = None
        self.s: I = None
        self.p: H = None
        self.u: G = None
        self.o: B = None
        self.t: G = None
        self.y: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: B = None
        self.t: B = None
        self.x: F = None
        self.r: I = None
        self.txt = txt

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

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

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

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