class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: G = None
        self.q: B = None
        self.r: F = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: C = None
        self.o: F = None
        self.p: I = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: I = None
        self.x: G = None
        self.z: F = None
        self.p: H = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: H = None
        self.u: E = None
        self.t: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: C = None
        self.o: F = None
        self.p: I = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: I = None
        self.x: G = None
        self.z: F = None
        self.p: H = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: H = None
        self.u: E = None
        self.t: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: E = None
        self.txt = txt

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

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

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

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