class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: C = None
        self.p: F = None
        self.x: B = None
        self.q: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: A = None
        self.q: A = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: F = None
        self.u: F = None
        self.y: B = None
        self.z: B = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: A = None
        self.q: A = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: F = None
        self.u: F = None
        self.y: B = None
        self.z: B = None
        self.q: F = None
        self.txt = txt

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

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

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

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