class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: C = None
        self.u: E = None
        self.s: E = None
        self.z: E = None
        self.y: H = None
        self.w: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: G = None
        self.t: F = None
        self.r: E = None
        self.u: D = None
        self.y: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.o: D = None
        self.y: A = None
        self.r: D = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: C = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: A = None
        self.r: I = None
        self.s: B = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: F = None
        self.s: H = None
        self.p: F = None
        self.x: F = None
        self.t: C = None
        self.z: J = None
        self.txt = txt

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

m = A("m")
d = B("d")
c = C("c")
l = D("l")
n = E("n")
f = F("f")
b = G("b")
g = H("g")
i = I("i")
k = J("k")

m.o = l
m.q = c
m.u = n
m.s = n
m.z = n
m.y = g
m.w = k
d.y = c
d.v = m
c.v = b
c.z = b
c.t = f
c.y = f
c.r = n
c.u = l
l.z = b
l.u = b
l.q = k
l.v = k
l.y = k
l.s = d
l.o = g
l.t = i
l.r = m
l.x = n
n.q = i
n.x = c
n.u = c
n.o = b
n.y = g
f.s = b
f.q = d
f.o = l
f.r = l
f.y = m
f.v = g
b.u = m
b.s = m
b.t = c
g.t = b
g.v = m
g.r = i
g.s = d
g.x = n
i.r = b
i.w = f
i.p = f
i.x = f
i.s = g
i.t = c
i.z = k
k.s = d
k.z = d
k.p = g
k.t = g
k.o = i
k.y = m
k.u = b
assert n.y.t.s.y.x.x.txt == "
class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: C = None
        self.u: E = None
        self.s: E = None
        self.z: E = None
        self.y: H = None
        self.w: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: G = None
        self.t: F = None
        self.r: E = None
        self.u: D = None
        self.y: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.o: D = None
        self.y: A = None
        self.r: D = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: C = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: A = None
        self.r: I = None
        self.s: B = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: F = None
        self.s: H = None
        self.p: F = None
        self.x: F = None
        self.t: C = None
        self.z: J = None
        self.txt = txt

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

m = A("m")
d = B("d")
c = C("c")
l = D("l")
n = E("n")
f = F("f")
b = G("b")
g = H("g")
i = I("i")
k = J("k")

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