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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: F = None
        self.q: C = None
        self.r: C = None
        self.p: J = None
        self.z: H = None
        self.s: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: F = None
        self.u: I = None
        self.r: B = None
        self.t: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: F = None
        self.s: F = None
        self.u: F = None
        self.q: F = None
        self.z: E = None
        self.t: I = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: E = None
        self.w: C = None
        self.x: E = None
        self.t: E = None
        self.v: J = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: F = None
        self.q: C = None
        self.r: C = None
        self.p: J = None
        self.z: H = None
        self.s: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: F = None
        self.u: I = None
        self.r: B = None
        self.t: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: F = None
        self.s: F = None
        self.u: F = None
        self.q: F = None
        self.z: E = None
        self.t: I = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: E = None
        self.w: C = None
        self.x: E = None
        self.t: E = None
        self.v: J = None
        self.txt = txt

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

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

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

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