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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: E = None
        self.o: C = None
        self.t: G = None
        self.u: D = None
        self.w: D = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: E = None
        self.r: B = None
        self.p: A = None
        self.s: A = None
        self.t: F = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: I = None
        self.q: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: E = None
        self.o: C = None
        self.t: G = None
        self.u: D = None
        self.w: D = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: E = None
        self.r: B = None
        self.p: A = None
        self.s: A = None
        self.t: F = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: I = None
        self.q: G = None
        self.txt = txt

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

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

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

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

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

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

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

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