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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: H = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: B = None
        self.o: E = None
        self.x: B = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: D = None
        self.u: D = None
        self.q: D = None
        self.x: E = None
        self.z: A = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: H = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: B = None
        self.o: E = None
        self.x: B = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: D = None
        self.u: D = None
        self.q: D = None
        self.x: E = None
        self.z: A = None
        self.v: E = None
        self.txt = txt

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

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

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