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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: J = None
        self.v: I = None
        self.o: G = None
        self.r: D = None
        self.t: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: B = None
        self.y: I = None
        self.v: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: E = None
        self.x: B = None
        self.v: H = None
        self.t: A = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: A = None
        self.p: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: G = None
        self.q: C = None
        self.s: A = None
        self.y: E = None
        self.v: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: J = None
        self.v: I = None
        self.o: G = None
        self.r: D = None
        self.t: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: B = None
        self.y: I = None
        self.v: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: E = None
        self.x: B = None
        self.v: H = None
        self.t: A = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: A = None
        self.p: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: G = None
        self.q: C = None
        self.s: A = None
        self.y: E = None
        self.v: G = None
        self.txt = txt

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

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