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

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: F = None
        self.z: I = None
        self.u: D = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.q: G = None
        self.t: B = None
        self.x: H = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.x: E = None
        self.z: I = None
        self.q: D = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: C = None
        self.x: F = None
        self.r: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: E = None
        self.s: G = None
        self.v: F = None
        self.w: I = None
        self.u: A = None
        self.z: A = None
        self.x: F = None
        self.txt = txt

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

m.s = l
m.r = b
m.v = b
m.w = f
m.z = f
m.q = j
m.o = c
a.z = c
a.s = f
a.v = f
a.y = f
a.w = l
a.p = l
a.o = g
a.x = g
a.t = g
c.o = l
c.q = l
c.z = f
c.u = i
c.x = b
i.y = j
i.q = g
i.t = a
i.x = h
i.p = c
b.p = i
b.y = g
l.v = c
l.w = c
l.y = c
l.u = h
l.z = h
l.x = f
l.t = a
l.s = b
g.p = j
g.x = b
g.z = f
g.q = i
g.s = c
h.q = j
h.v = c
h.x = l
h.r = a
f.x = a
f.v = b
j.p = a
j.t = b
j.s = g
j.v = l
j.x = l
j.w = f
j.u = m
j.z = m
assert m.s.x.v.txt == "
class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: E = None
        self.w: I = None
        self.q: J = None
        self.v: E = None
        self.z: I = None
        self.o: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: F = None
        self.z: I = None
        self.u: D = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.q: G = None
        self.t: B = None
        self.x: H = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.x: E = None
        self.z: I = None
        self.q: D = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: C = None
        self.x: F = None
        self.r: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: E = None
        self.s: G = None
        self.v: F = None
        self.w: I = None
        self.u: A = None
        self.z: A = None
        self.x: F = None
        self.txt = txt

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

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