class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: A = None
        self.q: E = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: I = None
        self.o: G = None
        self.q: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.x: E = None
        self.q: I = None
        self.y: C = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: E = None
        self.u: E = None
        self.s: C = None
        self.w: C = None
        self.y: D = None
        self.z: H = None
        self.o: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: A = None
        self.q: E = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: I = None
        self.o: G = None
        self.q: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.x: E = None
        self.q: I = None
        self.y: C = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: E = None
        self.u: E = None
        self.s: C = None
        self.w: C = None
        self.y: D = None
        self.z: H = None
        self.o: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: A = None
        self.txt = txt

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

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