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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: H = None
        self.r: G = None
        self.u: I = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: H = None
        self.r: G = None
        self.u: I = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

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

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