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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: B = None
        self.y: B = None
        self.r: A = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: E = None
        self.y: A = None
        self.r: E = None
        self.q: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: B = None
        self.y: B = None
        self.r: A = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: E = None
        self.y: A = None
        self.r: E = None
        self.q: D = None
        self.txt = txt

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

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

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

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