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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: C = None
        self.w: F = None
        self.p: H = None
        self.o: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: I = None
        self.p: F = None
        self.r: H = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: B = None
        self.s: E = None
        self.x: G = None
        self.r: F = None
        self.txt = txt

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

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

g = A("g")
i = B("i")
n = C("n")
f = D("f")
m = E("m")
e = F("e")
j = G("j")
k = H("k")
a = I("a")
d = J("d")

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: C = None
        self.w: F = None
        self.p: H = None
        self.o: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: I = None
        self.p: F = None
        self.r: H = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: B = None
        self.s: E = None
        self.x: G = None
        self.r: F = None
        self.txt = txt

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

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

g = A("g")
i = B("i")
n = C("n")
f = D("f")
m = E("m")
e = F("e")
j = G("j")
k = H("k")
a = I("a")
d = J("d")

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