class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: J = None
        self.z: B = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: G = None
        self.q: J = None
        self.z: I = None
        self.t: E = None
        self.x: G = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: A = None
        self.y: E = None
        self.u: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: H = None
        self.v: H = None
        self.t: D = None
        self.p: B = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: G = None
        self.q: J = None
        self.z: I = None
        self.t: E = None
        self.x: G = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: A = None
        self.y: E = None
        self.u: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: H = None
        self.v: H = None
        self.t: D = None
        self.p: B = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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