class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: B = None
        self.x: D = None
        self.z: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: D = None
        self.s: A = None
        self.q: B = None
        self.y: G = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: D = None
        self.o: B = None
        self.q: B = None
        self.t: D = None
        self.u: A = None
        self.r: D = None
        self.txt = txt

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

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

g = A("g")
h = B("h")
k = C("k")
f = D("f")
a = E("a")
j = F("j")
e = G("e")
d = H("d")
i = I("i")
c = J("c")

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

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

class C:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: D = None
        self.s: A = None
        self.q: B = None
        self.y: G = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: D = None
        self.o: B = None
        self.q: B = None
        self.t: D = None
        self.u: A = None
        self.r: D = None
        self.txt = txt

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

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

g = A("g")
h = B("h")
k = C("k")
f = D("f")
a = E("a")
j = F("j")
e = G("e")
d = H("d")
i = I("i")
c = J("c")

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