class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: B = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: G = None
        self.t: E = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: B = None
        self.t: D = None
        self.o: E = None
        self.z: E = None
        self.u: C = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: B = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: G = None
        self.t: E = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: B = None
        self.t: D = None
        self.o: E = None
        self.z: E = None
        self.u: C = None
        self.v: F = None
        self.txt = txt

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

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