class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: D = None
        self.u: D = None
        self.x: J = None
        self.v: C = None
        self.q: D = None
        self.p: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: C = None
        self.x: D = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: E = None
        self.o: H = None
        self.t: I = None
        self.q: H = None
        self.s: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: G = None
        self.o: H = None
        self.t: D = None
        self.q: C = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: G = None
        self.r: J = None
        self.w: E = None
        self.u: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: C = None
        self.x: D = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: E = None
        self.o: H = None
        self.t: I = None
        self.q: H = None
        self.s: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: G = None
        self.o: H = None
        self.t: D = None
        self.q: C = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: G = None
        self.r: J = None
        self.w: E = None
        self.u: F = None
        self.txt = txt

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

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

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