class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: I = None
        self.q: G = None
        self.y: D = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: H = None
        self.q: F = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: G = None
        self.o: G = None
        self.y: F = None
        self.r: A = None
        self.v: E = None
        self.t: E = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: I = None
        self.q: G = None
        self.y: D = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: H = None
        self.q: F = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: G = None
        self.o: G = None
        self.y: F = None
        self.r: A = None
        self.v: E = None
        self.t: E = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: B = None
        self.txt = txt

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

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