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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: D = None
        self.v: A = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: J = None
        self.s: H = None
        self.w: D = None
        self.y: C = None
        self.r: B = None
        self.z: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: D = None
        self.o: H = None
        self.z: B = None
        self.w: J = None
        self.q: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: D = None
        self.v: A = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: J = None
        self.s: H = None
        self.w: D = None
        self.y: C = None
        self.r: B = None
        self.z: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: D = None
        self.o: H = None
        self.z: B = None
        self.w: J = None
        self.q: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: F = None
        self.txt = txt

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

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