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

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

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

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

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

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

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

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

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

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

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

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

i.w = d
i.t = d
i.r = f
i.u = j
f.v = e
f.x = d
d.x = g
d.o = j
d.t = e
d.w = i
d.r = l
j.v = f
j.s = a
a.x = g
a.r = i
a.s = j
a.w = f
h.w = d
h.r = f
h.u = j
h.t = l
g.x = a
g.r = h
g.s = j
g.w = f
e.x = a
e.r = h
e.s = j
e.w = f
l.x = a
l.o = j
l.t = g
l.w = h
l.r = d
assert e.w.x.o.txt == "j"