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

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

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: G = None
        self.t: G = None
        self.y: F = None
        self.x: H = None
        self.v: G = None
        self.r: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: G = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: A = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: D = None
        self.w: F = None
        self.u: F = None
        self.txt = txt

d = A("d")
a = B("a")
h = C("h")
l = D("l")
e = E("e")
m = F("m")
f = G("f")
j = H("j")
b = D("b")

d.w = h
d.z = e
d.y = e
d.q = e
d.t = e
d.p = j
d.r = j
d.x = m
a.x = m
a.w = j
h.x = l
h.u = d
h.r = d
h.q = d
h.o = e
h.t = a
h.p = f
h.w = f
l.s = a
l.p = f
l.t = f
l.v = f
l.y = m
l.r = m
l.x = j
e.p = h
e.t = h
e.s = f
e.w = d
e.q = m
e.v = a
e.z = j
e.r = b
m.s = l
m.p = f
m.v = d
f.o = j
f.t = d
f.w = l
j.r = f
j.y = b
j.w = m
j.u = m
b.s = a
b.p = f
b.t = f
b.v = f
b.y = m
b.r = m
b.x = j
assert e.w.t.v.txt == "
class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.p: H = None
        self.y: E = None
        self.r: H = None
        self.q: E = None
        self.t: E = None
        self.x: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: G = None
        self.t: G = None
        self.y: F = None
        self.x: H = None
        self.v: G = None
        self.r: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: G = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: A = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: D = None
        self.w: F = None
        self.u: F = None
        self.txt = txt

d = A("d")
a = B("a")
h = C("h")
l = D("l")
e = E("e")
m = F("m")
f = G("f")
j = H("j")
b = D("b")

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