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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: H = None
        self.v: H = None
        self.s: A = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: J = None
        self.p: H = None
        self.t: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: D = None
        self.s: F = None
        self.p: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: D = None
        self.v: J = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: H = None
        self.v: H = None
        self.s: A = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: J = None
        self.p: H = None
        self.t: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: D = None
        self.s: F = None
        self.p: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: D = None
        self.v: J = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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