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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: D = None
        self.x: C = None
        self.o: F = None
        self.u: D = None
        self.p: A = None
        self.w: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: G = None
        self.r: H = None
        self.u: E = None
        self.y: F = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: D = None
        self.x: C = None
        self.o: F = None
        self.u: D = None
        self.p: A = None
        self.w: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: G = None
        self.r: H = None
        self.u: E = None
        self.y: F = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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

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