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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: H = None
        self.z: I = None
        self.q: F = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.x: A = None
        self.u: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: B = None
        self.w: B = None
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: C = None
        self.o: B = None
        self.t: F = None
        self.v: I = None
        self.r: I = None
        self.s: B = None
        self.x: I = None
        self.txt = txt

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

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

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

k.v = j
k.p = e
k.u = m
m.t = e
m.z = e
m.r = n
m.x = n
m.q = l
g.s = m
g.p = m
g.x = k
g.u = l
c.s = l
b.u = n
b.r = m
b.w = m
b.q = j
l.z = e
l.w = e
l.x = e
l.v = b
l.s = g
j.w = m
j.o = m
j.s = m
j.q = g
j.t = l
j.v = e
j.r = e
j.x = e
n.w = k
e.y = m
assert c.s.v.q.t.x.y.z.y.q.txt == "
class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: I = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: H = None
        self.z: I = None
        self.q: F = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.x: A = None
        self.u: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: B = None
        self.w: B = None
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: C = None
        self.o: B = None
        self.t: F = None
        self.v: I = None
        self.r: I = None
        self.s: B = None
        self.x: I = None
        self.txt = txt

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

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

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

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