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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: E = None
        self.q: A = None
        self.y: F = None
        self.w: F = None
        self.u: C = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: B = None
        self.p: D = None
        self.s: A = None
        self.z: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: E = None
        self.q: A = None
        self.y: F = None
        self.w: F = None
        self.u: C = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: B = None
        self.p: D = None
        self.s: A = None
        self.z: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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