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

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

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: H = None
        self.q: E = None
        self.y: E = None
        self.p: H = None
        self.t: I = None
        self.z: C = None
        self.w: I = None
        self.r: J = None
        self.s: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: A = None
        self.y: C = None
        self.s: H = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: E = None
        self.u: A = None
        self.r: J = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: G = None
        self.y: G = None
        self.v: B = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.v: F = None
        self.y: C = None
        self.p: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: C = None
        self.w: G = None
        self.u: A = None
        self.z: I = None
        self.q: B = None
        self.x: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: H = None
        self.q: E = None
        self.y: E = None
        self.p: H = None
        self.t: I = None
        self.z: C = None
        self.w: I = None
        self.r: J = None
        self.s: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: A = None
        self.y: C = None
        self.s: H = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: E = None
        self.u: A = None
        self.r: J = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: G = None
        self.y: G = None
        self.v: B = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.v: F = None
        self.y: C = None
        self.p: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: C = None
        self.w: G = None
        self.u: A = None
        self.z: I = None
        self.q: B = None
        self.x: I = None
        self.txt = txt

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

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