class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: B = None
        self.o: E = None
        self.w: C = None
        self.u: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: F = None
        self.z: E = None
        self.q: A = None
        self.y: B = None
        self.x: D = None
        self.r: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: D = None
        self.p: C = None
        self.y: E = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: F = None
        self.z: E = None
        self.q: A = None
        self.y: B = None
        self.x: D = None
        self.r: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: D = None
        self.p: C = None
        self.y: E = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: D = None
        self.u: D = None
        self.txt = txt

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

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