class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: B = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: C = None
        self.s: A = None
        self.y: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: C = None
        self.v: D = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

j = A("j")
a = B("a")
g = C("g")
k = D("k")
m = E("m")
l = C("l")
b = A("b")
h = D("h")
c = A("c")
n = B("n")

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: C = None
        self.s: A = None
        self.y: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: C = None
        self.v: D = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

j = A("j")
a = B("a")
g = C("g")
k = D("k")
m = E("m")
l = C("l")
b = A("b")
h = D("h")
c = A("c")
n = B("n")

j.u = l
j.t = a
j.w = a
a.v = m
a.y = m
a.u = l
a.s = b
g.s = k
g.w = j
g.u = m
g.y = m
g.o = m
k.x = j
k.q = g
k.v = h
k.t = c
m.x = b
l.s = k
l.w = j
l.u = m
l.y = m
l.o = m
b.u = l
b.t = n
b.w = n
h.x = c
h.t = c
h.q = l
h.v = k
c.u = g
c.t = a
c.w = n
n.v = m
n.y = m
n.u = l
n.s = b
assert b.w.u.o.x.u.s.v.v.txt == "k"