class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: F = None
        self.t: G = None
        self.z: G = None
        self.r: I = None
        self.p: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: H = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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

b = A("b")
l = B("l")
i = C("i")
f = D("f")
h = E("h")
d = F("d")
j = G("j")
c = H("c")
a = I("a")
e = D("e")

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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: H = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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

b = A("b")
l = B("l")
i = C("i")
f = D("f")
h = E("h")
d = F("d")
j = G("j")
c = H("c")
a = I("a")
e = D("e")

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