class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: A = None
        self.v: A = None
        self.z: B = None
        self.txt = txt

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

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

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

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

n = A("n")
f = B("f")
k = C("k")
b = D("b")
a = E("a")
i = B("i")
d = A("d")
l = C("l")
g = B("g")
h = E("h")

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

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

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

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

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

n = A("n")
f = B("f")
k = C("k")
b = D("b")
a = E("a")
i = B("i")
d = A("d")
l = C("l")
g = B("g")
h = E("h")

n.w = l
n.o = d
n.v = d
n.z = f
f.x = b
f.v = b
f.u = k
k.x = l
k.u = h
k.y = b
k.q = b
k.w = f
b.s = l
a.y = h
a.w = h
a.u = h
a.z = b
a.q = l
i.x = b
i.v = b
i.u = l
d.w = k
d.o = n
d.v = n
d.z = g
l.x = k
l.u = h
l.y = b
l.q = b
l.w = f
g.x = b
g.v = b
g.u = l
h.y = a
h.w = a
h.u = a
h.z = b
h.q = l
assert k.x.x.x.w.v.s.u.z.txt == "b"