class A:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: B = None
        self.x: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: J = None
        self.t: J = None
        self.y: I = None
        self.q: I = None
        self.w: C = None
        self.z: J = None
        self.p: C = None
        self.o: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: D = None
        self.w: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: E = None
        self.o: I = None
        self.txt = txt

i = A("i")
b = B("b")
h = C("h")
g = D("g")
k = E("k")
c = F("c")
j = G("j")
e = H("e")
f = I("f")
d = J("d")

i.z = e
i.p = b
i.s = b
i.x = k
b.o = i
b.z = e
b.x = d
h.o = f
h.t = j
h.r = d
h.q = b
h.x = g
g.v = i
g.u = i
g.w = b
g.o = d
g.r = d
g.y = h
g.p = h
g.z = f
k.q = g
k.o = f
k.x = f
k.s = f
k.z = i
k.r = e
k.u = e
c.u = d
c.t = d
c.z = d
c.y = f
c.q = f
c.w = h
c.p = h
c.o = g
j.w = c
j.p = h
j.y = i
j.q = e
j.u = e
j.r = b
j.t = f
e.z = h
e.o = h
e.w = h
e.x = d
e.u = d
e.r = i
e.q = b
e.s = f
e.v = k
e.t = k
f.x = e
f.t = g
f.w = i
d.r = b
d.s = k
d.o = f
assert f.t.o.o.t.o.o.x.t.q.txt == "
class A:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: B = None
        self.x: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: J = None
        self.t: J = None
        self.y: I = None
        self.q: I = None
        self.w: C = None
        self.z: J = None
        self.p: C = None
        self.o: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: D = None
        self.w: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: E = None
        self.o: I = None
        self.txt = txt

i = A("i")
b = B("b")
h = C("h")
g = D("g")
k = E("k")
c = F("c")
j = G("j")
e = H("e")
f = I("f")
d = J("d")

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