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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: F = None
        self.p: F = None
        self.s: E = None
        self.t: D = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: D = None
        self.y: C = None
        self.z: B = None
        self.o: F = None
        self.txt = txt

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

m.v = e
m.x = e
m.p = b
m.r = b
m.w = b
m.z = a
m.t = f
b.p = i
d.w = l
d.v = l
d.p = l
d.s = i
d.t = a
d.x = a
a.o = m
a.p = m
a.w = e
a.y = f
a.r = d
a.t = b
i.v = f
l.x = i
l.w = i
l.u = b
n.z = e
n.o = i
n.t = i
n.s = d
n.u = l
n.y = f
f.q = n
f.r = a
f.y = d
f.z = b
f.o = l
e.z = n
e.o = i
e.t = i
e.s = d
e.u = l
e.y = f
assert m.p.p.v.r.txt == "
class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: B = None
        self.r: B = None
        self.w: B = None
        self.z: D = None
        self.x: G = None
        self.t: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: F = None
        self.p: F = None
        self.s: E = None
        self.t: D = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: D = None
        self.y: C = None
        self.z: B = None
        self.o: F = None
        self.txt = txt

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

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