class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: I = None
        self.u: G = None
        self.o: H = None
        self.z: G = None
        self.t: F = None
        self.s: D = None
        self.x: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.x: G = None
        self.q: B = None
        self.s: I = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: H = None
        self.q: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: I = None
        self.u: G = None
        self.o: H = None
        self.z: G = None
        self.t: F = None
        self.s: D = None
        self.x: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.x: G = None
        self.q: B = None
        self.s: I = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: H = None
        self.q: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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