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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: J = None
        self.o: J = None
        self.x: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: G = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: D = None
        self.w: D = None
        self.u: C = None
        self.t: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: I = None
        self.y: H = None
        self.p: E = None
        self.o: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: J = None
        self.o: J = None
        self.x: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: G = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: D = None
        self.w: D = None
        self.u: C = None
        self.t: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: I = None
        self.y: H = None
        self.p: E = None
        self.o: I = None
        self.txt = txt

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

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