class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: B = None
        self.p: A = None
        self.w: B = None
        self.r: J = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: G = None
        self.s: C = None
        self.o: C = None
        self.x: C = None
        self.txt = txt

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

n = A("n")
g = B("g")
a = C("a")
d = D("d")
c = E("c")
f = F("f")
h = G("h")
m = H("m")
e = I("e")
l = J("l")

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: B = None
        self.p: A = None
        self.w: B = None
        self.r: J = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: G = None
        self.s: C = None
        self.o: C = None
        self.x: C = None
        self.txt = txt

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

n = A("n")
g = B("g")
a = C("a")
d = D("d")
c = E("c")
f = F("f")
h = G("h")
m = H("m")
e = I("e")
l = J("l")

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