class A:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: F = None
        self.o: G = None
        self.p: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: E = None
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: E = None
        self.o: D = None
        self.y: E = None
        self.w: J = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: H = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: A = None
        self.t: J = None
        self.z: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: E = None
        self.s: H = None
        self.r: H = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: E = None
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: E = None
        self.o: D = None
        self.y: E = None
        self.w: J = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: H = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: A = None
        self.t: J = None
        self.z: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: E = None
        self.s: H = None
        self.r: H = None
        self.p: I = None
        self.txt = txt

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

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