class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: F = None
        self.u: F = None
        self.x: I = None
        self.t: F = None
        self.q: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: I = None
        self.p: E = None
        self.v: C = None
        self.u: J = None
        self.z: J = None
        self.q: A = None
        self.x: H = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: J = None
        self.x: B = None
        self.z: I = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: F = None
        self.v: B = None
        self.q: E = None
        self.p: C = None
        self.o: B = None
        self.r: I = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: C = None
        self.r: B = None
        self.w: C = None
        self.u: B = None
        self.s: C = None
        self.p: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: I = None
        self.p: E = None
        self.v: C = None
        self.u: J = None
        self.z: J = None
        self.q: A = None
        self.x: H = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: J = None
        self.x: B = None
        self.z: I = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: F = None
        self.v: B = None
        self.q: E = None
        self.p: C = None
        self.o: B = None
        self.r: I = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: C = None
        self.r: B = None
        self.w: C = None
        self.u: B = None
        self.s: C = None
        self.p: G = None
        self.txt = txt

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

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

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

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