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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: F = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: C = None
        self.x: F = None
        self.t: C = None
        self.u: G = None
        self.y: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: I = None
        self.r: B = None
        self.z: I = None
        self.v: F = None
        self.t: F = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: E = None
        self.o: A = None
        self.y: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: B = None
        self.s: C = None
        self.u: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: F = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: C = None
        self.x: F = None
        self.t: C = None
        self.u: G = None
        self.y: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: I = None
        self.r: B = None
        self.z: I = None
        self.v: F = None
        self.t: F = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: E = None
        self.o: A = None
        self.y: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: B = None
        self.s: C = None
        self.u: D = None
        self.txt = txt

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

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