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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: A = None
        self.v: A = None
        self.u: C = None
        self.q: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: B = None
        self.t: C = None
        self.o: G = None
        self.w: C = None
        self.v: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: G = None
        self.y: D = None
        self.p: E = None
        self.txt = txt

m = A("m")
c = B("c")
b = C("b")
d = D("d")
k = E("k")
h = F("h")
a = G("a")
n = H("n")
i = I("i")

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: A = None
        self.v: A = None
        self.u: C = None
        self.q: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: B = None
        self.t: C = None
        self.o: G = None
        self.w: C = None
        self.v: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: G = None
        self.y: D = None
        self.p: E = None
        self.txt = txt

m = A("m")
c = B("c")
b = C("b")
d = D("d")
k = E("k")
h = F("h")
a = G("a")
n = H("n")
i = I("i")

m.x = c
m.q = c
m.t = c
m.v = c
m.z = h
m.p = b
m.s = d
c.o = b
c.u = b
c.w = m
c.v = m
c.q = k
b.y = d
b.q = d
b.s = a
b.u = n
b.o = k
b.r = k
b.x = c
b.p = i
b.v = m
d.y = m
d.w = m
d.t = m
d.p = m
d.v = i
d.u = h
d.o = b
d.r = n
k.t = d
k.s = h
k.o = b
k.v = b
k.y = m
k.q = i
k.w = a
k.p = n
h.y = a
h.o = a
h.v = a
h.u = c
h.t = b
h.w = b
a.s = n
a.y = n
a.q = i
a.u = d
a.o = m
a.z = m
a.t = h
n.t = i
n.u = i
n.v = b
n.r = k
n.y = c
n.o = c
n.w = c
n.q = c
n.p = a
i.v = d
i.y = d
i.o = a
i.p = k
assert n.u.p.s.txt == "h"