class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: B = None
        self.s: C = None
        self.p: G = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: F = None
        self.s: C = None
        self.o: D = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: G = None
        self.t: C = None
        self.p: D = None
        self.q: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: D = None
        self.y: A = None
        self.s: I = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: A = None
        self.x: F = None
        self.u: A = None
        self.v: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: F = None
        self.s: C = None
        self.o: D = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: G = None
        self.t: C = None
        self.p: D = None
        self.q: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: D = None
        self.y: A = None
        self.s: I = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: A = None
        self.x: F = None
        self.u: A = None
        self.v: F = None
        self.txt = txt

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

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