class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: E = None
        self.u: F = None
        self.z: B = None
        self.r: H = None
        self.y: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: A = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: E = None
        self.u: F = None
        self.z: B = None
        self.r: H = None
        self.y: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: A = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: B = None
        self.txt = txt

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

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

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