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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: H = None
        self.p: J = None
        self.w: D = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: C = None
        self.x: C = None
        self.v: I = None
        self.r: B = None
        self.o: G = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: G = None
        self.t: H = None
        self.w: H = None
        self.s: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: H = None
        self.p: J = None
        self.w: D = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: C = None
        self.x: C = None
        self.v: I = None
        self.r: B = None
        self.o: G = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: G = None
        self.t: H = None
        self.w: H = None
        self.s: H = None
        self.txt = txt

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

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

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