class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: I = None
        self.z: A = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: E = None
        self.o: D = None
        self.q: H = None
        self.s: D = None
        self.y: H = None
        self.p: D = None
        self.r: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: D = None
        self.u: F = None
        self.q: C = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: I = None
        self.z: A = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: E = None
        self.o: D = None
        self.q: H = None
        self.s: D = None
        self.y: H = None
        self.p: D = None
        self.r: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: D = None
        self.u: F = None
        self.q: C = None
        self.w: E = None
        self.txt = txt

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

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