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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: G = None
        self.v: F = None
        self.q: F = None
        self.u: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: F = None
        self.v: J = None
        self.u: B = None
        self.t: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: G = None
        self.v: F = None
        self.q: F = None
        self.u: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: F = None
        self.v: J = None
        self.u: B = None
        self.t: D = None
        self.txt = txt

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

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

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

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

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