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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: F = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: J = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: H = None
        self.z: D = None
        self.t: D = None
        self.s: E = None
        self.x: A = None
        self.p: G = None
        self.r: D = None
        self.q: H = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.r: J = None
        self.v: A = None
        self.o: A = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: C = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: G = None
        self.s: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: F = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: J = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: H = None
        self.z: D = None
        self.t: D = None
        self.s: E = None
        self.x: A = None
        self.p: G = None
        self.r: D = None
        self.q: H = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.r: J = None
        self.v: A = None
        self.o: A = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: C = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: G = None
        self.s: D = None
        self.txt = txt

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

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