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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: E = None
        self.p: D = None
        self.o: G = None
        self.x: A = None
        self.v: E = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: C = None
        self.s: E = None
        self.p: F = None
        self.z: A = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: F = None
        self.z: F = None
        self.q: F = None
        self.u: C = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: C = None
        self.q: A = None
        self.t: H = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: E = None
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: E = None
        self.p: D = None
        self.o: G = None
        self.x: A = None
        self.v: E = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: C = None
        self.s: E = None
        self.p: F = None
        self.z: A = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: F = None
        self.z: F = None
        self.q: F = None
        self.u: C = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: C = None
        self.q: A = None
        self.t: H = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: E = None
        self.y: A = None
        self.txt = txt

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

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