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

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: A = None
        self.o: D = None
        self.y: C = None
        self.v: C = None
        self.p: J = None
        self.z: C = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: I = None
        self.r: C = None
        self.q: H = None
        self.u: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: A = None
        self.o: D = None
        self.y: C = None
        self.v: C = None
        self.p: J = None
        self.z: C = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: I = None
        self.r: C = None
        self.q: H = None
        self.u: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: B = None
        self.txt = txt

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

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

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