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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: C = None
        self.p: C = None
        self.y: E = None
        self.r: C = None
        self.txt = txt

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

m = A("m")
j = B("j")
g = C("g")
d = D("d")
l = E("l")
h = B("h")
b = A("b")
c = C("c")
i = E("i")
k = B("k")

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: C = None
        self.p: C = None
        self.y: E = None
        self.r: C = None
        self.txt = txt

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

m = A("m")
j = B("j")
g = C("g")
d = D("d")
l = E("l")
h = B("h")
b = A("b")
c = C("c")
i = E("i")
k = B("k")

m.v = j
m.w = i
m.s = l
j.v = b
j.x = b
j.r = d
j.w = h
j.q = l
g.z = h
g.o = h
g.p = l
d.u = j
d.t = g
d.p = g
d.r = g
d.y = i
l.p = k
l.o = h
l.s = j
l.t = j
l.x = d
h.v = m
h.r = d
h.w = j
h.x = b
h.q = l
b.v = j
b.w = l
b.s = i
c.z = j
c.o = h
c.p = l
i.p = k
i.s = k
i.t = k
i.o = h
i.x = d
k.v = b
k.x = b
k.r = d
k.w = j
k.q = i
assert d.y.o.r.u.txt == "j"