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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: D = None
        self.p: F = None
        self.x: J = None
        self.r: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: C = None
        self.z: H = None
        self.r: E = None
        self.v: B = None
        self.w: G = None
        self.q: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.q: B = None
        self.z: G = None
        self.y: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: D = None
        self.p: F = None
        self.x: J = None
        self.r: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: C = None
        self.z: H = None
        self.r: E = None
        self.v: B = None
        self.w: G = None
        self.q: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.q: B = None
        self.z: G = None
        self.y: C = None
        self.txt = txt

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

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

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