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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: E = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: E = None
        self.w: G = None
        self.o: B = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: E = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: E = None
        self.w: G = None
        self.o: B = None
        self.z: F = None
        self.txt = txt

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

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

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