class A:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: F = None
        self.w: F = None
        self.s: B = None
        self.t: J = None
        self.y: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: C = None
        self.z: E = None
        self.x: E = None
        self.w: F = None
        self.y: J = None
        self.v: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: A = None
        self.t: G = None
        self.z: I = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: C = None
        self.y: G = None
        self.q: F = None
        self.p: G = None
        self.v: G = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: H = None
        self.s: I = None
        self.w: H = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: H = None
        self.s: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: C = None
        self.z: E = None
        self.x: E = None
        self.w: F = None
        self.y: J = None
        self.v: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: A = None
        self.t: G = None
        self.z: I = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: C = None
        self.y: G = None
        self.q: F = None
        self.p: G = None
        self.v: G = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: H = None
        self.s: I = None
        self.w: H = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: H = None
        self.s: A = None
        self.txt = txt

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

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