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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: A = None
        self.s: B = None
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: E = None
        self.q: E = None
        self.t: A = None
        self.z: D = None
        self.txt = txt

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

d.y = a
d.p = a
d.s = j
h.r = m
h.v = m
h.z = m
h.y = j
h.x = g
m.z = d
m.r = d
m.x = d
m.s = g
e.v = d
e.s = d
e.o = h
l.r = e
l.w = n
l.q = n
l.t = d
l.z = a
n.r = a
n.w = l
n.q = l
n.t = d
n.z = e
a.v = d
a.s = d
a.o = j
g.r = m
g.v = m
g.z = m
g.y = h
g.x = j
j.r = m
j.v = m
j.z = m
j.y = g
j.x = g
assert j.x.x.z.txt == "
class A:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: D = None
        self.s: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: A = None
        self.s: B = None
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: E = None
        self.q: E = None
        self.t: A = None
        self.z: D = None
        self.txt = txt

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

d.y = a
d.p = a
d.s = j
h.r = m
h.v = m
h.z = m
h.y = j
h.x = g
m.z = d
m.r = d
m.x = d
m.s = g
e.v = d
e.s = d
e.o = h
l.r = e
l.w = n
l.q = n
l.t = d
l.z = a
n.r = a
n.w = l
n.q = l
n.t = d
n.z = e
a.v = d
a.s = d
a.o = j
g.r = m
g.v = m
g.z = m
g.y = h
g.x = j
j.r = m
j.v = m
j.z = m
j.y = g
j.x = g
assert j.x.x.z.txt == "m"