class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: I = None
        self.r: B = None
        self.o: I = None
        self.z: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: G = None
        self.t: E = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: G = None
        self.y: J = None
        self.p: E = None
        self.r: G = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: B = None
        self.p: G = None
        self.x: H = None
        self.t: H = None
        self.v: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: E = None
        self.o: F = None
        self.y: B = None
        self.x: G = None
        self.r: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: C = None
        self.z: F = None
        self.u: E = None
        self.w: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: G = None
        self.t: E = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: G = None
        self.y: J = None
        self.p: E = None
        self.r: G = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: B = None
        self.p: G = None
        self.x: H = None
        self.t: H = None
        self.v: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: E = None
        self.o: F = None
        self.y: B = None
        self.x: G = None
        self.r: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: C = None
        self.z: F = None
        self.u: E = None
        self.w: G = None
        self.txt = txt

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

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