class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: I = None
        self.u: D = None
        self.v: H = None
        self.z: I = None
        self.s: I = None
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: E = None
        self.x: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: I = None
        self.q: G = None
        self.y: B = None
        self.o: C = None
        self.z: C = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: F = None
        self.x: G = None
        self.z: I = None
        self.u: D = None
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: G = None
        self.u: C = None
        self.t: G = None
        self.z: A = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: H = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: G = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: G = None
        self.o: A = None
        self.p: D = None
        self.v: H = None
        self.t: D = None
        self.x: C = None
        self.txt = txt

h = A("h")
l = B("l")
e = C("e")
c = D("c")
n = E("n")
j = F("j")
a = G("a")
i = H("i")
k = I("k")
g = J("g")

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: E = None
        self.x: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: I = None
        self.q: G = None
        self.y: B = None
        self.o: C = None
        self.z: C = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: F = None
        self.x: G = None
        self.z: I = None
        self.u: D = None
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: G = None
        self.u: C = None
        self.t: G = None
        self.z: A = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: H = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: G = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: G = None
        self.o: A = None
        self.p: D = None
        self.v: H = None
        self.t: D = None
        self.x: C = None
        self.txt = txt

h = A("h")
l = B("l")
e = C("e")
c = D("c")
n = E("n")
j = F("j")
a = G("a")
i = H("i")
k = I("k")
g = J("g")

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