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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: A = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: H = None
        self.z: A = None
        self.s: D = None
        self.x: E = None
        self.p: A = None
        self.q: C = None
        self.r: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: B = None
        self.z: C = None
        self.s: D = None
        self.y: A = None
        self.t: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: A = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: H = None
        self.z: A = None
        self.s: D = None
        self.x: E = None
        self.p: A = None
        self.q: C = None
        self.r: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: B = None
        self.z: C = None
        self.s: D = None
        self.y: A = None
        self.t: B = None
        self.txt = txt

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

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