class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: G = None
        self.u: E = None
        self.p: I = None
        self.v: H = None
        self.z: H = None
        self.o: E = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: D = None
        self.s: J = None
        self.v: F = None
        self.z: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: B = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: D = None
        self.s: J = None
        self.v: F = None
        self.z: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: B = None
        self.o: A = None
        self.txt = txt

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

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

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