class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: F = None
        self.s: F = None
        self.y: D = None
        self.r: F = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: J = None
        self.u: D = None
        self.p: H = None
        self.x: H = None
        self.y: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: E = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: C = None
        self.y: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: I = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: F = None
        self.u: A = None
        self.z: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: D = None
        self.s: C = None
        self.t: G = None
        self.p: G = None
        self.q: G = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: J = None
        self.u: D = None
        self.p: H = None
        self.x: H = None
        self.y: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: E = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: C = None
        self.y: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: I = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: F = None
        self.u: A = None
        self.z: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: D = None
        self.s: C = None
        self.t: G = None
        self.p: G = None
        self.q: G = None
        self.r: G = None
        self.txt = txt

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

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