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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.t: I = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: D = None
        self.z: D = None
        self.y: I = None
        self.t: G = None
        self.s: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: I = None
        self.z: E = None
        self.t: A = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: J = None
        self.o: J = None
        self.s: A = None
        self.p: E = None
        self.x: A = None
        self.u: A = None
        self.z: G = None
        self.t: F = None
        self.w: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: E = None
        self.x: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.t: I = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: D = None
        self.z: D = None
        self.y: I = None
        self.t: G = None
        self.s: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: I = None
        self.z: E = None
        self.t: A = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: J = None
        self.o: J = None
        self.s: A = None
        self.p: E = None
        self.x: A = None
        self.u: A = None
        self.z: G = None
        self.t: F = None
        self.w: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: E = None
        self.x: D = None
        self.txt = txt

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

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