class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: J = None
        self.o: E = None
        self.u: G = None
        self.p: G = None
        self.z: F = None
        self.t: G = None
        self.q: I = None
        self.w: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: J = None
        self.w: B = None
        self.x: A = None
        self.s: J = None
        self.u: D = None
        self.q: I = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: J = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: F = None
        self.z: A = None
        self.x: B = None
        self.o: J = None
        self.w: G = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: A = None
        self.x: C = None
        self.p: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: E = None
        self.w: F = None
        self.o: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: J = None
        self.w: B = None
        self.x: A = None
        self.s: J = None
        self.u: D = None
        self.q: I = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: J = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: F = None
        self.z: A = None
        self.x: B = None
        self.o: J = None
        self.w: G = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: A = None
        self.x: C = None
        self.p: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: E = None
        self.w: F = None
        self.o: A = None
        self.txt = txt

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

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