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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: E = None
        self.y: B = None
        self.txt = txt

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

i = A("i")
e = B("e")
l = C("l")
b = D("b")
d = E("d")
c = D("c")
f = E("f")
j = B("j")
a = C("a")
n = A("n")

i.r = d
i.x = f
e.u = a
e.v = f
e.p = f
e.w = i
e.o = d
l.s = d
b.u = j
b.y = j
b.o = f
d.v = n
d.w = n
d.p = f
c.u = e
c.o = d
c.y = j
f.v = i
f.p = d
f.w = n
j.u = l
j.v = f
j.p = f
j.o = f
j.w = n
a.s = d
n.r = f
n.x = d
assert l.s.p.w.txt == "
class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: E = None
        self.y: B = None
        self.txt = txt

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

i = A("i")
e = B("e")
l = C("l")
b = D("b")
d = E("d")
c = D("c")
f = E("f")
j = B("j")
a = C("a")
n = A("n")

i.r = d
i.x = f
e.u = a
e.v = f
e.p = f
e.w = i
e.o = d
l.s = d
b.u = j
b.y = j
b.o = f
d.v = n
d.w = n
d.p = f
c.u = e
c.o = d
c.y = j
f.v = i
f.p = d
f.w = n
j.u = l
j.v = f
j.p = f
j.o = f
j.w = n
a.s = d
n.r = f
n.x = d
assert l.s.p.w.txt == "n"