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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: F = None
        self.v: F = None
        self.o: J = None
        self.y: G = None
        self.w: G = None
        self.q: B = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: E = None
        self.o: C = None
        self.p: D = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: F = None
        self.v: F = None
        self.o: J = None
        self.y: G = None
        self.w: G = None
        self.q: B = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: E = None
        self.o: C = None
        self.p: D = None
        self.s: E = None
        self.txt = txt

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

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