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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: A = None
        self.p: E = None
        self.txt = txt

e = A("e")
l = B("l")
k = C("k")
a = D("a")
j = E("j")
b = E("b")
f = E("f")
g = C("g")
m = B("m")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: A = None
        self.p: E = None
        self.txt = txt

e = A("e")
l = B("l")
k = C("k")
a = D("a")
j = E("j")
b = E("b")
f = E("f")
g = C("g")
m = B("m")

e.s = j
e.w = j
e.x = f
e.y = m
l.v = a
k.v = l
k.o = m
k.t = e
a.z = l
j.u = f
j.t = e
j.p = b
b.u = j
b.t = e
b.p = f
f.u = j
f.p = j
f.t = e
g.v = l
g.o = l
g.t = e
m.v = a
assert b.u.t.s.u.u.t.x.u.txt == "j"