class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: J = None
        self.p: D = None
        self.o: I = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: B = None
        self.p: F = None
        self.u: I = None
        self.s: H = None
        self.q: E = None
        self.o: D = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: B = None
        self.p: F = None
        self.u: I = None
        self.s: H = None
        self.q: E = None
        self.o: D = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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