class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: E = None
        self.t: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: C = None
        self.t: B = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: C = None
        self.t: B = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

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

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