class A:
    def __init__(self, txt: str):
        self.o: J = None
        self.x: C = None
        self.t: I = None
        self.s: E = None
        self.p: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: I = None
        self.u: I = None
        self.t: D = None
        self.z: F = None
        self.v: A = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.r: A = None
        self.p: G = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: J = None
        self.q: I = None
        self.z: E = None
        self.x: E = None
        self.r: C = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: G = None
        self.u: J = None
        self.s: B = None
        self.q: I = None
        self.o: G = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: J = None
        self.z: A = None
        self.u: H = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: E = None
        self.q: G = None
        self.x: I = None
        self.w: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: I = None
        self.u: I = None
        self.t: D = None
        self.z: F = None
        self.v: A = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.r: A = None
        self.p: G = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: J = None
        self.q: I = None
        self.z: E = None
        self.x: E = None
        self.r: C = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: G = None
        self.u: J = None
        self.s: B = None
        self.q: I = None
        self.o: G = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: J = None
        self.z: A = None
        self.u: H = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: E = None
        self.q: G = None
        self.x: I = None
        self.w: E = None
        self.txt = txt

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

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