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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: C = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: C = None
        self.r: E = None
        self.s: E = None
        self.txt = txt

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

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

e = A("e")
d = B("d")
f = C("f")
c = D("c")
k = E("k")
l = C("l")
g = C("g")
h = A("h")
n = E("n")
i = D("i")

e.s = c
e.o = c
e.p = d
e.z = f
e.r = f
d.r = i
d.w = f
d.s = l
f.y = n
f.s = n
f.t = g
f.r = k
c.v = d
c.x = e
c.o = i
c.y = k
k.p = d
k.r = d
l.y = k
l.r = k
l.t = g
l.s = n
g.y = n
g.t = l
g.r = k
g.s = k
h.s = i
h.o = i
h.p = d
h.z = g
h.r = f
n.p = d
n.r = d
i.v = d
i.x = h
i.o = c
i.y = n
assert d.r.o.v.s.s.p.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: B = None
        self.z: C = None
        self.r: C = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: C = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: C = None
        self.r: E = None
        self.s: E = None
        self.txt = txt

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

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

e = A("e")
d = B("d")
f = C("f")
c = D("c")
k = E("k")
l = C("l")
g = C("g")
h = A("h")
n = E("n")
i = D("i")

e.s = c
e.o = c
e.p = d
e.z = f
e.r = f
d.r = i
d.w = f
d.s = l
f.y = n
f.s = n
f.t = g
f.r = k
c.v = d
c.x = e
c.o = i
c.y = k
k.p = d
k.r = d
l.y = k
l.r = k
l.t = g
l.s = n
g.y = n
g.t = l
g.r = k
g.s = k
h.s = i
h.o = i
h.p = d
h.z = g
h.r = f
n.p = d
n.r = d
i.v = d
i.x = h
i.o = c
i.y = n
assert d.r.o.v.s.s.p.w.t.txt == "g"