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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: D = None
        self.y: A = None
        self.v: D = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: A = None
        self.v: E = None
        self.y: D = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: D = None
        self.y: A = None
        self.v: D = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: A = None
        self.v: E = None
        self.y: D = None
        self.p: E = None
        self.txt = txt

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

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

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

n.z = j
n.u = i
n.v = i
n.w = i
n.x = k
h.t = l
h.r = i
h.v = i
h.w = i
h.y = k
l.z = e
l.v = e
l.w = k
l.y = i
l.p = j
i.w = l
i.p = c
i.t = b
i.s = b
j.u = i
e.u = i
b.z = j
b.w = k
b.v = e
b.p = e
b.y = i
c.z = e
c.u = i
c.v = i
c.w = i
c.x = n
k.z = j
k.u = i
k.v = i
k.w = i
k.x = c
g.t = b
g.r = i
g.v = i
g.w = i
g.y = n
assert e.u.t.y.w.y.p.txt == "c"