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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: F = None
        self.s: D = None
        self.p: H = None
        self.y: C = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.s: G = None
        self.q: B = None
        self.y: A = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: G = None
        self.w: A = None
        self.y: F = None
        self.r: B = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: A = None
        self.txt = txt

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

e = A("e")
i = B("i")
b = C("b")
g = D("g")
h = E("h")
m = F("m")
a = G("a")
f = H("f")
n = I("n")
k = J("k")

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: F = None
        self.s: D = None
        self.p: H = None
        self.y: C = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.s: G = None
        self.q: B = None
        self.y: A = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: G = None
        self.w: A = None
        self.y: F = None
        self.r: B = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: A = None
        self.txt = txt

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

e = A("e")
i = B("i")
b = C("b")
g = D("g")
h = E("h")
m = F("m")
a = G("a")
f = H("f")
n = I("n")
k = J("k")

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