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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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

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

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