class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: B = None
        self.o: E = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: F = None
        self.u: G = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: B = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: D = None
        self.y: F = None
        self.u: B = None
        self.t: A = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: B = None
        self.y: G = None
        self.z: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: F = None
        self.u: G = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: B = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: D = None
        self.y: F = None
        self.u: B = None
        self.t: A = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: B = None
        self.y: G = None
        self.z: H = None
        self.txt = txt

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

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