class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: J = None
        self.q: C = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.u: A = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: F = None
        self.y: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: G = None
        self.t: C = None
        self.s: E = None
        self.w: B = None
        self.x: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.u: A = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: F = None
        self.y: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: G = None
        self.t: C = None
        self.s: E = None
        self.w: B = None
        self.x: I = None
        self.txt = txt

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

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