class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: G = None
        self.x: D = None
        self.t: F = None
        self.u: F = None
        self.w: D = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: C = None
        self.t: A = None
        self.y: A = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: H = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: G = None
        self.s: D = None
        self.r: D = None
        self.v: I = None
        self.x: H = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: D = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: H = None
        self.x: B = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: C = None
        self.t: A = None
        self.y: A = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: H = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: G = None
        self.s: D = None
        self.r: D = None
        self.v: I = None
        self.x: H = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: D = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: H = None
        self.x: B = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

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