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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.z: D = None
        self.o: J = None
        self.s: D = None
        self.t: G = None
        self.r: J = None
        self.u: J = None
        self.v: D = None
        self.w: G = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.r: G = None
        self.y: B = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: F = None
        self.y: J = None
        self.v: E = None
        self.r: G = None
        self.o: J = None
        self.q: F = None
        self.p: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: J = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: B = None
        self.r: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: J = None
        self.p: D = None
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: I = None
        self.q: H = None
        self.y: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.z: D = None
        self.o: J = None
        self.s: D = None
        self.t: G = None
        self.r: J = None
        self.u: J = None
        self.v: D = None
        self.w: G = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.r: G = None
        self.y: B = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: F = None
        self.y: J = None
        self.v: E = None
        self.r: G = None
        self.o: J = None
        self.q: F = None
        self.p: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: J = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: B = None
        self.r: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: J = None
        self.p: D = None
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: I = None
        self.q: H = None
        self.y: E = None
        self.txt = txt

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

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