class A:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: C = None
        self.o: H = None
        self.y: G = None
        self.w: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: G = None
        self.r: C = None
        self.s: J = None
        self.u: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: H = None
        self.x: B = None
        self.t: B = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: G = None
        self.r: C = None
        self.s: J = None
        self.u: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: H = None
        self.x: B = None
        self.t: B = None
        self.p: H = None
        self.txt = txt

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

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