class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: G = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: H = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: B = None
        self.o: B = None
        self.w: E = None
        self.x: E = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.o: F = None
        self.y: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: G = None
        self.y: C = None
        self.p: G = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: H = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: B = None
        self.o: B = None
        self.w: E = None
        self.x: E = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.o: F = None
        self.y: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: G = None
        self.y: C = None
        self.p: G = None
        self.q: A = None
        self.txt = txt

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

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