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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: C = None
        self.p: I = None
        self.t: A = None
        self.r: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: G = None
        self.s: H = None
        self.o: G = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: A = None
        self.z: J = None
        self.r: A = None
        self.w: J = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

j = A("j")
c = B("c")
k = C("k")
f = D("f")
i = E("i")
h = F("h")
l = G("l")
g = H("g")
e = I("e")
m = J("m")

j.q = k
j.p = k
j.z = e
j.w = g
j.t = f
j.v = f
j.u = f
j.x = c
j.r = c
j.o = c
c.w = f
c.x = k
c.p = e
c.t = j
c.r = j
k.s = f
k.t = c
k.q = l
f.y = k
f.x = k
f.q = l
f.o = l
f.s = g
i.y = c
i.t = j
i.r = j
i.z = m
i.w = m
i.u = h
h.p = c
h.w = c
h.z = j
h.y = j
h.o = j
h.s = i
h.u = i
h.v = i
h.q = m
h.t = k
l.o = c
l.r = g
l.p = i
g.p = i
g.z = i
g.x = f
g.w = f
g.y = m
g.t = l
g.o = h
g.r = h
g.q = j
e.r = g
e.y = h
e.o = f
e.t = f
e.z = m
e.w = c
e.u = l
e.q = l
e.p = j
m.u = j
m.r = j
m.w = f
m.v = f
m.z = f
m.s = h
m.x = i
m.q = e
m.o = c
assert g.t.r.z.z.v.txt == "
class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: I = None
        self.w: H = None
        self.t: D = None
        self.x: B = None
        self.r: B = None
        self.v: D = None
        self.o: B = None
        self.p: C = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: C = None
        self.p: I = None
        self.t: A = None
        self.r: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: G = None
        self.s: H = None
        self.o: G = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: A = None
        self.z: J = None
        self.r: A = None
        self.w: J = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

j = A("j")
c = B("c")
k = C("k")
f = D("f")
i = E("i")
h = F("h")
l = G("l")
g = H("g")
e = I("e")
m = J("m")

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