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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: G = None
        self.o: C = None
        self.v: F = None
        self.t: D = None
        self.z: G = None
        self.u: I = None
        self.p: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: H = None
        self.t: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: J = None
        self.u: F = None
        self.z: F = None
        self.s: H = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: G = None
        self.o: C = None
        self.v: F = None
        self.t: D = None
        self.z: G = None
        self.u: I = None
        self.p: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: H = None
        self.t: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: J = None
        self.u: F = None
        self.z: F = None
        self.s: H = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: E = None
        self.txt = txt

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

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