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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: D = None
        self.q: D = None
        self.v: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: F = None
        self.s: A = None
        self.w: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: G = None
        self.z: F = None
        self.txt = txt

h = A("h")
f = B("f")
e = C("e")
k = D("k")
g = E("g")
n = F("n")
a = G("a")
l = H("l")
j = D("j")
i = E("i")

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: D = None
        self.q: D = None
        self.v: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: F = None
        self.s: A = None
        self.w: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: G = None
        self.z: F = None
        self.txt = txt

h = A("h")
f = B("f")
e = C("e")
k = D("k")
g = E("g")
n = F("n")
a = G("a")
l = H("l")
j = D("j")
i = E("i")

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