class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.t: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: G = None
        self.s: F = None
        self.y: A = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: A = None
        self.x: G = None
        self.q: B = None
        self.txt = txt

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

c.v = a
e.s = j
n.t = d
n.v = d
n.r = d
n.z = j
n.o = j
n.q = j
a.p = c
a.r = d
a.t = n
b.p = i
b.r = j
b.s = c
d.s = e
i.r = b
j.x = l
j.q = i
j.t = i
j.s = d
j.y = c
l.u = j
l.p = c
l.x = i
l.q = e
assert i.r.p.r.r.q.r.r.y.v.txt == "
class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.t: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: G = None
        self.s: F = None
        self.y: A = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: A = None
        self.x: G = None
        self.q: B = None
        self.txt = txt

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

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