class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.s: H = None
        self.v: G = None
        self.q: J = None
        self.y: E = None
        self.o: E = None
        self.t: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: I = None
        self.t: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: I = None
        self.u: D = None
        self.t: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: F = None
        self.t: G = None
        self.w: C = None
        self.u: A = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: E = None
        self.o: F = None
        self.w: G = None
        self.q: H = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: A = None
        self.u: G = None
        self.y: F = None
        self.q: I = None
        self.p: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: I = None
        self.t: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: I = None
        self.u: D = None
        self.t: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: F = None
        self.t: G = None
        self.w: C = None
        self.u: A = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: E = None
        self.o: F = None
        self.w: G = None
        self.q: H = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: A = None
        self.u: G = None
        self.y: F = None
        self.q: I = None
        self.p: B = None
        self.txt = txt

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

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