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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: G = None
        self.w: G = None
        self.q: I = None
        self.x: C = None
        self.z: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: A = None
        self.v: G = None
        self.p: E = None
        self.r: A = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: G = None
        self.w: G = None
        self.q: I = None
        self.x: C = None
        self.z: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: A = None
        self.v: G = None
        self.p: E = None
        self.r: A = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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

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