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

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

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

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

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

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

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

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

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

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

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

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

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