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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: A = None
        self.y: D = None
        self.r: E = None
        self.q: J = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: G = None
        self.y: B = None
        self.q: E = None
        self.w: E = None
        self.t: E = None
        self.u: B = None
        self.x: D = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: D = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: J = None
        self.w: I = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: A = None
        self.o: H = None
        self.x: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: I = None
        self.u: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: C = None
        self.q: D = None
        self.s: F = None
        self.w: D = None
        self.v: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: A = None
        self.y: D = None
        self.r: E = None
        self.q: J = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: G = None
        self.y: B = None
        self.q: E = None
        self.w: E = None
        self.t: E = None
        self.u: B = None
        self.x: D = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: D = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: J = None
        self.w: I = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: A = None
        self.o: H = None
        self.x: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: I = None
        self.u: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: C = None
        self.q: D = None
        self.s: F = None
        self.w: D = None
        self.v: H = None
        self.txt = txt

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

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