class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: J = None
        self.x: H = None
        self.y: D = None
        self.t: G = None
        self.o: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: I = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: D = None
        self.v: J = None
        self.x: G = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: I = None
        self.y: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: B = None
        self.r: D = None
        self.u: J = None
        self.v: H = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: C = None
        self.z: A = None
        self.q: B = None
        self.s: I = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: A = None
        self.u: D = None
        self.v: F = None
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.u: B = None
        self.y: B = None
        self.z: C = None
        self.p: D = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: B = None
        self.o: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: I = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: D = None
        self.v: J = None
        self.x: G = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: I = None
        self.y: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: B = None
        self.r: D = None
        self.u: J = None
        self.v: H = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: C = None
        self.z: A = None
        self.q: B = None
        self.s: I = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: A = None
        self.u: D = None
        self.v: F = None
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.u: B = None
        self.y: B = None
        self.z: C = None
        self.p: D = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: B = None
        self.o: D = None
        self.txt = txt

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

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

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