class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: A = None
        self.r: G = None
        self.u: G = None
        self.w: H = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: A = None
        self.r: G = None
        self.u: G = None
        self.w: H = None
        self.q: E = None
        self.txt = txt

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

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

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