class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: I = None
        self.v: E = None
        self.x: G = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.p: F = None
        self.v: A = None
        self.u: H = None
        self.s: I = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: I = None
        self.q: G = None
        self.t: H = None
        self.y: C = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: B = None
        self.s: A = None
        self.p: J = None
        self.r: G = None
        self.u: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: E = None
        self.y: D = None
        self.v: G = None
        self.r: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: I = None
        self.v: E = None
        self.x: G = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.p: F = None
        self.v: A = None
        self.u: H = None
        self.s: I = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: I = None
        self.q: G = None
        self.t: H = None
        self.y: C = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: B = None
        self.s: A = None
        self.p: J = None
        self.r: G = None
        self.u: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: E = None
        self.y: D = None
        self.v: G = None
        self.r: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: F = None
        self.txt = txt

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

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