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

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: A = None
        self.s: A = None
        self.z: C = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: A = None
        self.s: A = None
        self.z: C = None
        self.t: A = None
        self.txt = txt

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

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

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