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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: F = None
        self.p: I = None
        self.y: G = None
        self.z: G = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: I = None
        self.x: B = None
        self.z: G = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: D = None
        self.w: G = None
        self.o: I = None
        self.v: C = None
        self.z: D = None
        self.q: B = None
        self.r: I = None
        self.s: D = None
        self.x: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: B = None
        self.p: F = None
        self.t: C = None
        self.r: F = None
        self.u: A = None
        self.v: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: H = None
        self.v: D = None
        self.r: F = None
        self.w: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: F = None
        self.p: I = None
        self.y: G = None
        self.z: G = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: I = None
        self.x: B = None
        self.z: G = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: D = None
        self.w: G = None
        self.o: I = None
        self.v: C = None
        self.z: D = None
        self.q: B = None
        self.r: I = None
        self.s: D = None
        self.x: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: B = None
        self.p: F = None
        self.t: C = None
        self.r: F = None
        self.u: A = None
        self.v: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: H = None
        self.v: D = None
        self.r: F = None
        self.w: D = None
        self.txt = txt

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

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

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