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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: B = None
        self.x: G = None
        self.p: F = None
        self.w: G = None
        self.o: B = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: B = None
        self.x: G = None
        self.p: F = None
        self.w: G = None
        self.o: B = None
        self.t: E = None
        self.txt = txt

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

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