class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: F = None
        self.z: G = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: H = None
        self.p: E = None
        self.w: E = None
        self.z: B = None
        self.t: G = None
        self.o: H = None
        self.r: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: A = None
        self.v: H = None
        self.z: D = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: B = None
        self.u: A = None
        self.s: H = None
        self.z: A = None
        self.q: A = None
        self.y: E = None
        self.w: F = None
        self.txt = txt

l = A("l")
e = B("e")
h = C("h")
k = D("k")
g = E("g")
m = F("m")
d = G("d")
n = H("n")
j = H("j")
f = B("f")

l.s = h
e.x = f
e.u = m
e.z = d
e.w = l
h.s = f
h.z = f
h.r = f
h.v = j
h.o = j
h.p = g
h.w = g
h.t = d
k.v = f
k.z = g
k.y = j
k.u = j
k.s = l
k.r = l
k.p = n
k.x = h
g.p = d
g.r = l
g.v = n
g.z = k
g.u = k
m.x = g
d.v = j
n.r = k
n.o = e
n.u = l
n.z = l
n.q = l
n.s = j
n.y = g
n.w = m
j.r = k
j.o = f
j.u = l
j.z = l
j.q = l
j.s = n
j.y = g
j.w = m
f.x = e
f.u = m
f.z = d
f.w = l
assert f.w.s.r.u.x.z.y.y.p.v.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: F = None
        self.z: G = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: H = None
        self.p: E = None
        self.w: E = None
        self.z: B = None
        self.t: G = None
        self.o: H = None
        self.r: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: A = None
        self.v: H = None
        self.z: D = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: B = None
        self.u: A = None
        self.s: H = None
        self.z: A = None
        self.q: A = None
        self.y: E = None
        self.w: F = None
        self.txt = txt

l = A("l")
e = B("e")
h = C("h")
k = D("k")
g = E("g")
m = F("m")
d = G("d")
n = H("n")
j = H("j")
f = B("f")

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