class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: G = None
        self.p: H = None
        self.x: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: F = None
        self.v: B = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: I = None
        self.x: C = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: F = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: F = None
        self.v: B = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: I = None
        self.x: C = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: F = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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