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

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

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: F = None
        self.p: G = None
        self.x: D = None
        self.y: H = None
        self.o: B = None
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: I = None
        self.v: J = None
        self.u: H = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: B = None
        self.s: A = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: F = None
        self.p: G = None
        self.x: D = None
        self.y: H = None
        self.o: B = None
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: I = None
        self.v: J = None
        self.u: H = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: B = None
        self.s: A = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

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