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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: J = None
        self.p: I = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: I = None
        self.p: A = None
        self.s: B = None
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: E = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: B = None
        self.z: D = None
        self.y: D = None
        self.r: D = None
        self.v: H = None
        self.p: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: C = None
        self.s: C = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: J = None
        self.p: I = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: I = None
        self.p: A = None
        self.s: B = None
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: E = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: B = None
        self.z: D = None
        self.y: D = None
        self.r: D = None
        self.v: H = None
        self.p: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: C = None
        self.s: C = None
        self.z: B = None
        self.txt = txt

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

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