class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: D = None
        self.y: F = None
        self.u: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: B = None
        self.s: F = None
        self.z: H = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: H = None
        self.t: I = None
        self.x: I = None
        self.s: A = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: E = None
        self.v: B = None
        self.s: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: B = None
        self.t: A = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: B = None
        self.w: F = None
        self.y: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: B = None
        self.s: F = None
        self.z: H = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: H = None
        self.t: I = None
        self.x: I = None
        self.s: A = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: E = None
        self.v: B = None
        self.s: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: B = None
        self.t: A = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: B = None
        self.w: F = None
        self.y: G = None
        self.txt = txt

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

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