class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: B = None
        self.r: F = None
        self.z: J = None
        self.v: F = None
        self.y: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: B = None
        self.y: G = None
        self.p: I = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: D = None
        self.z: I = None
        self.y: E = None
        self.r: E = None
        self.v: I = None
        self.t: A = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: A = None
        self.s: D = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: F = None
        self.x: E = None
        self.w: C = None
        self.y: G = None
        self.v: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: B = None
        self.y: G = None
        self.p: I = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: D = None
        self.z: I = None
        self.y: E = None
        self.r: E = None
        self.v: I = None
        self.t: A = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: A = None
        self.s: D = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: F = None
        self.x: E = None
        self.w: C = None
        self.y: G = None
        self.v: A = None
        self.txt = txt

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

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

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