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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: A = None
        self.w: C = None
        self.v: F = None
        self.o: F = None
        self.q: F = None
        self.x: F = None
        self.r: A = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: A = None
        self.w: C = None
        self.v: F = None
        self.o: F = None
        self.q: F = None
        self.x: F = None
        self.r: A = None
        self.txt = txt

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

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