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

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

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

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.p: G = None
        self.z: H = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.p: G = None
        self.z: H = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

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

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