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

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

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: D = None
        self.o: D = None
        self.s: A = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: D = None
        self.o: D = None
        self.s: A = None
        self.u: A = None
        self.txt = txt

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

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

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