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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: H = None
        self.z: H = None
        self.t: H = None
        self.x: A = None
        self.u: D = None
        self.q: B = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.z: C = None
        self.x: F = None
        self.s: G = None
        self.u: C = None
        self.r: F = None
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: D = None
        self.r: B = None
        self.q: E = None
        self.w: D = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: H = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: H = None
        self.z: H = None
        self.t: H = None
        self.x: A = None
        self.u: D = None
        self.q: B = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.z: C = None
        self.x: F = None
        self.s: G = None
        self.u: C = None
        self.r: F = None
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: D = None
        self.r: B = None
        self.q: E = None
        self.w: D = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: H = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: C = None
        self.txt = txt

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

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