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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: A = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: G = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: A = None
        self.s: H = None
        self.r: D = None
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: A = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: G = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: A = None
        self.s: H = None
        self.r: D = None
        self.p: G = None
        self.txt = txt

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

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