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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: G = None
        self.v: D = None
        self.x: J = None
        self.p: F = None
        self.z: F = None
        self.w: F = None
        self.r: G = None
        self.y: F = None
        self.t: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: C = None
        self.o: G = None
        self.z: C = None
        self.u: H = None
        self.x: H = None
        self.w: B = None
        self.p: G = None
        self.q: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: D = None
        self.q: E = None
        self.s: C = None
        self.o: G = None
        self.v: H = None
        self.r: C = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: J = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: A = None
        self.w: J = None
        self.q: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: G = None
        self.v: D = None
        self.x: J = None
        self.p: F = None
        self.z: F = None
        self.w: F = None
        self.r: G = None
        self.y: F = None
        self.t: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: C = None
        self.o: G = None
        self.z: C = None
        self.u: H = None
        self.x: H = None
        self.w: B = None
        self.p: G = None
        self.q: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: D = None
        self.q: E = None
        self.s: C = None
        self.o: G = None
        self.v: H = None
        self.r: C = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: J = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: A = None
        self.w: J = None
        self.q: G = None
        self.txt = txt

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

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

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

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