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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: J = None
        self.s: F = None
        self.y: D = None
        self.v: B = None
        self.z: J = None
        self.p: J = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: B = None
        self.z: B = None
        self.s: I = None
        self.r: A = None
        self.q: B = None
        self.o: D = None
        self.u: I = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: J = None
        self.s: F = None
        self.y: D = None
        self.v: B = None
        self.z: J = None
        self.p: J = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: B = None
        self.z: B = None
        self.s: I = None
        self.r: A = None
        self.q: B = None
        self.o: D = None
        self.u: I = None
        self.txt = txt

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

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

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

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