class A:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: C = None
        self.w: I = None
        self.r: G = None
        self.x: H = None
        self.y: J = None
        self.v: G = None
        self.q: F = None
        self.s: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.p: E = None
        self.w: H = None
        self.y: D = None
        self.o: E = None
        self.x: B = None
        self.v: E = None
        self.t: B = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: G = None
        self.u: F = None
        self.y: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: J = None
        self.r: I = None
        self.u: G = None
        self.v: B = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: E = None
        self.s: D = None
        self.p: C = None
        self.r: H = None
        self.u: D = None
        self.v: G = None
        self.y: G = None
        self.txt = txt

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

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

n.p = g
n.y = g
n.u = e
n.w = i
n.r = a
n.v = a
n.s = a
n.x = f
n.q = j
c.v = e
c.u = i
c.x = i
c.q = i
c.o = j
c.p = n
c.z = g
e.u = d
e.p = d
e.o = d
e.v = d
e.w = f
e.r = f
e.y = b
e.x = c
e.t = c
b.w = a
b.s = a
b.u = j
b.y = d
d.s = g
d.x = g
d.v = g
d.w = g
d.p = n
d.z = c
d.q = c
d.o = i
d.t = a
d.y = f
j.y = c
j.v = c
j.w = g
j.r = i
j.u = a
j.o = n
a.s = n
a.o = n
a.q = f
a.p = b
a.w = e
f.y = d
f.t = d
f.u = j
i.x = a
i.v = a
i.y = a
i.t = d
i.s = b
i.u = b
i.p = e
i.r = f
g.u = f
g.r = d
assert b.u.r.r.u.o.w.p.t.txt == "
class A:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: C = None
        self.w: I = None
        self.r: G = None
        self.x: H = None
        self.y: J = None
        self.v: G = None
        self.q: F = None
        self.s: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.p: E = None
        self.w: H = None
        self.y: D = None
        self.o: E = None
        self.x: B = None
        self.v: E = None
        self.t: B = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: G = None
        self.u: F = None
        self.y: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: J = None
        self.r: I = None
        self.u: G = None
        self.v: B = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: E = None
        self.s: D = None
        self.p: C = None
        self.r: H = None
        self.u: D = None
        self.v: G = None
        self.y: G = None
        self.txt = txt

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

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

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