class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: J = None
        self.r: H = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: J = None
        self.z: A = None
        self.p: E = None
        self.r: C = None
        self.q: C = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: G = None
        self.r: D = None
        self.q: C = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: J = None
        self.z: A = None
        self.p: E = None
        self.r: C = None
        self.q: C = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: G = None
        self.r: D = None
        self.q: C = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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