class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: G = None
        self.q: G = None
        self.t: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: I = None
        self.x: H = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: H = None
        self.x: J = None
        self.z: J = None
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.z: I = None
        self.o: B = None
        self.u: D = None
        self.p: C = None
        self.txt = txt

g = A("g")
e = B("e")
a = C("a")
n = D("n")
d = E("d")
k = F("k")
l = G("l")
b = H("b")
f = I("f")
i = J("i")

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: I = None
        self.x: H = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: H = None
        self.x: J = None
        self.z: J = None
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.z: I = None
        self.o: B = None
        self.u: D = None
        self.p: C = None
        self.txt = txt

g = A("g")
e = B("e")
a = C("a")
n = D("n")
d = E("d")
k = F("k")
l = G("l")
b = H("b")
f = I("f")
i = J("i")

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