class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: I = None
        self.s: G = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: A = None
        self.o: E = None
        self.t: H = None
        self.x: G = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: H = None
        self.q: D = None
        self.v: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: C = None
        self.x: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: E = None
        self.q: E = None
        self.u: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: A = None
        self.o: E = None
        self.t: H = None
        self.x: G = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: H = None
        self.q: D = None
        self.v: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: C = None
        self.x: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: E = None
        self.q: E = None
        self.u: C = None
        self.txt = txt

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

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

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