class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: D = None
        self.v: H = None
        self.r: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: H = None
        self.v: I = None
        self.y: H = None
        self.z: D = None
        self.r: I = None
        self.o: H = None
        self.p: G = None
        self.u: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: C = None
        self.t: B = None
        self.o: A = None
        self.z: I = None
        self.y: H = None
        self.x: G = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: F = None
        self.t: A = None
        self.r: D = None
        self.z: C = None
        self.q: I = None
        self.v: B = None
        self.w: H = None
        self.u: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: F = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: C = None
        self.v: E = None
        self.u: F = None
        self.w: B = None
        self.q: A = None
        self.x: G = None
        self.s: F = None
        self.o: G = None
        self.txt = txt

l = A("l")
e = B("e")
d = C("d")
h = D("h")
a = E("a")
m = F("m")
k = G("k")
g = H("g")
j = I("j")

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: H = None
        self.v: I = None
        self.y: H = None
        self.z: D = None
        self.r: I = None
        self.o: H = None
        self.p: G = None
        self.u: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: C = None
        self.t: B = None
        self.o: A = None
        self.z: I = None
        self.y: H = None
        self.x: G = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: F = None
        self.t: A = None
        self.r: D = None
        self.z: C = None
        self.q: I = None
        self.v: B = None
        self.w: H = None
        self.u: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: F = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: C = None
        self.v: E = None
        self.u: F = None
        self.w: B = None
        self.q: A = None
        self.x: G = None
        self.s: F = None
        self.o: G = None
        self.txt = txt

l = A("l")
e = B("e")
d = C("d")
h = D("h")
a = E("a")
m = F("m")
k = G("k")
g = H("g")
j = I("j")

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