class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: G = None
        self.s: B = None
        self.q: D = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: H = None
        self.o: H = None
        self.r: H = None
        self.w: G = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: G = None
        self.q: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.y: I = None
        self.o: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: F = None
        self.w: F = None
        self.p: B = None
        self.u: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: H = None
        self.o: H = None
        self.r: H = None
        self.w: G = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: G = None
        self.q: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.y: I = None
        self.o: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: F = None
        self.w: F = None
        self.p: B = None
        self.u: D = None
        self.txt = txt

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

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