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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: C = None
        self.t: D = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: C = None
        self.t: D = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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