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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: I = None
        self.p: J = None
        self.r: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: H = None
        self.q: H = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: I = None
        self.p: J = None
        self.r: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: H = None
        self.q: H = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: D = None
        self.txt = txt

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

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

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