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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: H = None
        self.w: C = None
        self.z: C = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: G = None
        self.o: A = None
        self.y: H = None
        self.t: F = None
        self.x: C = None
        self.v: I = None
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: H = None
        self.w: C = None
        self.z: C = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: G = None
        self.o: A = None
        self.y: H = None
        self.t: F = None
        self.x: C = None
        self.v: I = None
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: H = None
        self.txt = txt

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

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

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

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