class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: H = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: F = None
        self.r: D = None
        self.z: D = None
        self.y: G = None
        self.x: F = None
        self.o: A = None
        self.txt = txt

i = A("i")
k = B("k")
l = C("l")
d = D("d")
h = E("h")
e = F("e")
a = G("a")
b = H("b")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: H = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: F = None
        self.r: D = None
        self.z: D = None
        self.y: G = None
        self.x: F = None
        self.o: A = None
        self.txt = txt

i = A("i")
k = B("k")
l = C("l")
d = D("d")
h = E("h")
e = F("e")
a = G("a")
b = H("b")

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