class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: C = None
        self.t: I = None
        self.z: E = None
        self.q: F = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: C = None
        self.u: E = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: D = None
        self.w: H = None
        self.p: D = None
        self.t: C = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: B = None
        self.o: B = None
        self.t: C = None
        self.p: B = None
        self.s: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: C = None
        self.u: E = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: D = None
        self.w: H = None
        self.p: D = None
        self.t: C = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: B = None
        self.o: B = None
        self.t: C = None
        self.p: B = None
        self.s: H = None
        self.txt = txt

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

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