class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.v: H = None
        self.t: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

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