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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: I = None
        self.y: I = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: I = None
        self.y: I = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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