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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: B = None
        self.v: B = None
        self.z: A = None
        self.s: B = None
        self.q: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: B = None
        self.v: B = None
        self.z: A = None
        self.s: B = None
        self.q: H = None
        self.txt = txt

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

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

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