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

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

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

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

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

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

e.u = c
e.w = c
e.s = i
g.u = h
g.z = h
g.w = c
g.p = n
g.o = i
h.q = c
h.w = c
h.s = d
i.w = h
i.s = h
i.u = e
c.s = d
c.u = g
c.t = g
c.y = e
n.w = h
n.s = h
n.u = e
l.u = h
l.z = h
l.w = c
l.p = n
l.o = n
d.u = c
d.w = c
d.s = i
assert g.w.u.u.s.s.txt == "
class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: D = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

e.u = c
e.w = c
e.s = i
g.u = h
g.z = h
g.w = c
g.p = n
g.o = i
h.q = c
h.w = c
h.s = d
i.w = h
i.s = h
i.u = e
c.s = d
c.u = g
c.t = g
c.y = e
n.w = h
n.s = h
n.u = e
l.u = h
l.z = h
l.w = c
l.p = n
l.o = n
d.u = c
d.w = c
d.s = i
assert g.w.u.u.s.s.txt == "i"