class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: J = None
        self.p: C = None
        self.u: G = None
        self.v: H = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: H = None
        self.s: A = None
        self.q: I = None
        self.z: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: H = None
        self.z: G = None
        self.u: H = None
        self.t: H = None
        self.o: H = None
        self.p: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: F = None
        self.w: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: H = None
        self.s: A = None
        self.q: I = None
        self.z: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: H = None
        self.z: G = None
        self.u: H = None
        self.t: H = None
        self.o: H = None
        self.p: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: F = None
        self.w: A = None
        self.txt = txt

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

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

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

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

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