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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: C = None
        self.v: I = None
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: A = None
        self.r: J = None
        self.q: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: C = None
        self.v: I = None
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: A = None
        self.r: J = None
        self.q: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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