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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: I = None
        self.q: F = None
        self.u: G = None
        self.s: C = None
        self.y: G = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: J = None
        self.q: D = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.u: J = None
        self.o: E = None
        self.v: A = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: D = None
        self.u: I = None
        self.s: E = None
        self.txt = txt

b = A("b")
c = B("c")
a = C("a")
m = D("m")
j = E("j")
n = F("n")
f = G("f")
k = H("k")
d = I("d")
e = J("e")

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: I = None
        self.q: F = None
        self.u: G = None
        self.s: C = None
        self.y: G = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: J = None
        self.q: D = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.u: J = None
        self.o: E = None
        self.v: A = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: D = None
        self.u: I = None
        self.s: E = None
        self.txt = txt

b = A("b")
c = B("c")
a = C("a")
m = D("m")
j = E("j")
n = F("n")
f = G("f")
k = H("k")
d = I("d")
e = J("e")

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