class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: G = None
        self.y: I = None
        self.s: C = None
        self.z: J = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: J = None
        self.q: H = None
        self.w: I = None
        self.r: I = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: I = None
        self.p: C = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: J = None
        self.z: E = None
        self.u: H = None
        self.w: H = None
        self.r: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: B = None
        self.s: D = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: J = None
        self.q: H = None
        self.w: I = None
        self.r: I = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: I = None
        self.p: C = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: J = None
        self.z: E = None
        self.u: H = None
        self.w: H = None
        self.r: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: B = None
        self.s: D = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.txt = txt

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

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