class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.u: F = None
        self.v: D = None
        self.q: J = None
        self.y: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: J = None
        self.w: G = None
        self.o: A = None
        self.t: J = None
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: D = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.z: E = None
        self.w: E = None
        self.y: E = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: J = None
        self.v: A = None
        self.r: F = None
        self.w: H = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: A = None
        self.s: D = None
        self.p: B = None
        self.t: F = None
        self.z: J = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: J = None
        self.w: G = None
        self.o: A = None
        self.t: J = None
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: D = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.z: E = None
        self.w: E = None
        self.y: E = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: J = None
        self.v: A = None
        self.r: F = None
        self.w: H = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: A = None
        self.s: D = None
        self.p: B = None
        self.t: F = None
        self.z: J = None
        self.txt = txt

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

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

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

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