class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: H = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: D = None
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: A = None
        self.p: E = None
        self.t: A = None
        self.o: C = None
        self.u: C = None
        self.s: D = None
        self.x: E = None
        self.txt = txt

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

n.w = e
n.o = l
n.y = d
a.x = m
a.t = d
a.u = n
k.u = g
k.x = e
d.v = a
c.w = d
c.q = i
m.w = i
m.r = k
m.p = a
g.s = l
g.z = n
l.v = g
l.q = n
l.t = n
l.p = c
l.x = c
l.o = k
l.u = k
l.s = d
i.w = m
i.r = k
i.p = a
e.s = l
e.z = n
assert e.s.s.v.u.w.s.txt == "
class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: H = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: D = None
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: A = None
        self.p: E = None
        self.t: A = None
        self.o: C = None
        self.u: C = None
        self.s: D = None
        self.x: E = None
        self.txt = txt

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

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