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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: J = None
        self.o: J = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: B = None
        self.x: E = None
        self.t: A = None
        self.r: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: J = None
        self.o: J = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: B = None
        self.x: E = None
        self.t: A = None
        self.r: C = None
        self.txt = txt

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

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

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

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