class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: F = None
        self.y: G = None
        self.s: B = None
        self.z: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: B = None
        self.x: G = None
        self.u: H = None
        self.o: F = None
        self.s: G = None
        self.y: D = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: E = None
        self.x: E = None
        self.q: E = None
        self.u: G = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: C = None
        self.t: B = None
        self.v: G = None
        self.u: F = None
        self.w: F = None
        self.p: B = None
        self.s: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: B = None
        self.x: G = None
        self.u: H = None
        self.o: F = None
        self.s: G = None
        self.y: D = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: E = None
        self.x: E = None
        self.q: E = None
        self.u: G = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: C = None
        self.t: B = None
        self.v: G = None
        self.u: F = None
        self.w: F = None
        self.p: B = None
        self.s: A = None
        self.txt = txt

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

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