class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: B = None
        self.q: I = None
        self.w: F = None
        self.y: I = None
        self.o: B = None
        self.p: I = None
        self.u: H = None
        self.t: H = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: B = None
        self.r: E = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: I = None
        self.u: G = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: G = None
        self.v: A = None
        self.s: F = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: B = None
        self.r: E = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: I = None
        self.u: G = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: G = None
        self.v: A = None
        self.s: F = None
        self.z: A = None
        self.txt = txt

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

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