class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: J = None
        self.o: J = None
        self.r: I = None
        self.p: D = None
        self.x: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: F = None
        self.p: J = None
        self.v: C = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: J = None
        self.r: E = None
        self.w: E = None
        self.o: B = None
        self.s: A = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: E = None
        self.s: J = None
        self.p: I = None
        self.w: D = None
        self.u: C = None
        self.z: B = None
        self.q: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: F = None
        self.p: J = None
        self.v: C = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: J = None
        self.r: E = None
        self.w: E = None
        self.o: B = None
        self.s: A = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: E = None
        self.s: J = None
        self.p: I = None
        self.w: D = None
        self.u: C = None
        self.z: B = None
        self.q: I = None
        self.txt = txt

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

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

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

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

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