class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: A = None
        self.v: B = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.x: B = None
        self.p: C = None
        self.t: F = None
        self.y: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: H = None
        self.y: B = None
        self.t: G = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: A = None
        self.v: B = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.x: B = None
        self.p: C = None
        self.t: F = None
        self.y: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: H = None
        self.y: B = None
        self.t: G = None
        self.w: B = None
        self.txt = txt

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

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