class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: F = None
        self.p: H = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: C = None
        self.w: H = None
        self.x: E = None
        self.v: F = None
        self.q: C = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: C = None
        self.u: A = None
        self.p: D = None
        self.z: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: G = None
        self.u: A = None
        self.t: A = None
        self.v: A = None
        self.q: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: F = None
        self.p: H = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: C = None
        self.w: H = None
        self.x: E = None
        self.v: F = None
        self.q: C = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: C = None
        self.u: A = None
        self.p: D = None
        self.z: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: G = None
        self.u: A = None
        self.t: A = None
        self.v: A = None
        self.q: F = None
        self.txt = txt

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

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