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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: G = None
        self.q: J = None
        self.v: A = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: A = None
        self.q: A = None
        self.z: H = None
        self.t: H = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.v: A = None
        self.z: G = None
        self.y: J = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: A = None
        self.p: G = None
        self.y: B = None
        self.q: G = None
        self.t: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: G = None
        self.q: J = None
        self.v: A = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: A = None
        self.q: A = None
        self.z: H = None
        self.t: H = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.v: A = None
        self.z: G = None
        self.y: J = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: A = None
        self.p: G = None
        self.y: B = None
        self.q: G = None
        self.t: I = None
        self.txt = txt

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

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