class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: B = None
        self.v: B = None
        self.u: G = None
        self.s: H = None
        self.q: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: D = None
        self.s: F = None
        self.r: G = None
        self.w: F = None
        self.z: D = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

i = A("i")
l = B("l")
a = C("a")
k = D("k")
e = E("e")
g = F("g")
c = G("c")
b = H("b")
n = G("n")

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: D = None
        self.s: F = None
        self.r: G = None
        self.w: F = None
        self.z: D = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

i = A("i")
l = B("l")
a = C("a")
k = D("k")
e = E("e")
g = F("g")
c = G("c")
b = H("b")
n = G("n")

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