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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: E = None
        self.u: E = None
        self.o: D = None
        self.t: G = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: E = None
        self.u: E = None
        self.o: D = None
        self.t: G = None
        self.x: D = None
        self.txt = txt

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

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

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

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