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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: E = None
        self.r: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: B = None
        self.p: G = None
        self.y: E = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: D = None
        self.x: G = None
        self.q: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: H = None
        self.u: D = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: E = None
        self.r: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: B = None
        self.p: G = None
        self.y: E = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: D = None
        self.x: G = None
        self.q: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: H = None
        self.u: D = None
        self.w: B = None
        self.txt = txt

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

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