class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: G = None
        self.w: B = None
        self.y: H = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: H = None
        self.r: A = None
        self.t: G = None
        self.s: E = None
        self.y: C = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: E = None
        self.q: E = None
        self.w: E = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: B = None
        self.v: C = None
        self.w: A = None
        self.t: H = None
        self.txt = txt

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

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

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

i = A("i")
e = B("e")
g = C("g")
k = D("k")
d = E("d")
j = F("j")
c = G("c")
f = H("f")

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: H = None
        self.r: A = None
        self.t: G = None
        self.s: E = None
        self.y: C = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: E = None
        self.q: E = None
        self.w: E = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: B = None
        self.v: C = None
        self.w: A = None
        self.t: H = None
        self.txt = txt

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

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

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

i = A("i")
e = B("e")
g = C("g")
k = D("k")
d = E("d")
j = F("j")
c = G("c")
f = H("f")

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