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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: D = None
        self.z: D = None
        self.u: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: A = None
        self.s: E = None
        self.y: J = None
        self.x: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.t: B = None
        self.r: D = None
        self.w: H = None
        self.o: B = None
        self.x: F = None
        self.v: E = None
        self.q: F = None
        self.z: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: D = None
        self.z: D = None
        self.u: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: A = None
        self.s: E = None
        self.y: J = None
        self.x: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.t: B = None
        self.r: D = None
        self.w: H = None
        self.o: B = None
        self.x: F = None
        self.v: E = None
        self.q: F = None
        self.z: G = None
        self.txt = txt

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

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