class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: I = None
        self.s: I = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: I = None
        self.o: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: F = None
        self.s: A = None
        self.q: C = None
        self.t: J = None
        self.r: F = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: G = None
        self.p: B = None
        self.y: G = None
        self.x: H = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.r: E = None
        self.v: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: F = None
        self.w: G = None
        self.t: A = None
        self.z: J = None
        self.s: J = None
        self.o: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: I = None
        self.o: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: F = None
        self.s: A = None
        self.q: C = None
        self.t: J = None
        self.r: F = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: G = None
        self.p: B = None
        self.y: G = None
        self.x: H = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.r: E = None
        self.v: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: F = None
        self.w: G = None
        self.t: A = None
        self.z: J = None
        self.s: J = None
        self.o: B = None
        self.txt = txt

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

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

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