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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: D = None
        self.t: E = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.y: A = None
        self.p: C = None
        self.u: C = None
        self.txt = txt

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

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

f.s = j
f.u = j
f.y = h
f.o = h
h.u = l
h.x = f
j.r = a
j.q = b
j.t = l
j.o = l
e.x = b
e.w = b
e.y = f
e.p = j
e.u = j
l.o = a
l.t = g
l.p = h
a.s = j
a.u = j
a.y = h
a.o = h
i.s = j
i.u = j
i.y = h
i.o = h
g.s = j
g.u = j
g.y = h
g.o = h
b.x = e
b.w = e
b.y = g
b.p = j
b.u = j
assert h.x.o.x.s.r.u.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.u: C = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: D = None
        self.t: E = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.y: A = None
        self.p: C = None
        self.u: C = None
        self.txt = txt

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

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

f.s = j
f.u = j
f.y = h
f.o = h
h.u = l
h.x = f
j.r = a
j.q = b
j.t = l
j.o = l
e.x = b
e.w = b
e.y = f
e.p = j
e.u = j
l.o = a
l.t = g
l.p = h
a.s = j
a.u = j
a.y = h
a.o = h
i.s = j
i.u = j
i.y = h
i.o = h
g.s = j
g.u = j
g.y = h
g.o = h
b.x = e
b.w = e
b.y = g
b.p = j
b.u = j
assert h.x.o.x.s.r.u.txt == "j"