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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: H = None
        self.y: C = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: E = None
        self.x: D = None
        self.r: C = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: H = None
        self.y: C = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: E = None
        self.x: D = None
        self.r: C = None
        self.q: D = None
        self.txt = txt

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

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