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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: I = None
        self.s: I = None
        self.u: A = None
        self.r: E = None
        self.x: D = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: B = None
        self.y: D = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: F = None
        self.q: B = None
        self.t: D = None
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: I = None
        self.s: I = None
        self.u: A = None
        self.r: E = None
        self.x: D = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: B = None
        self.y: D = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: F = None
        self.q: B = None
        self.t: D = None
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: F = None
        self.txt = txt

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

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