class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: E = None
        self.u: H = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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