class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: B = None
        self.u: F = None
        self.y: C = None
        self.o: B = None
        self.w: D = None
        self.r: C = None
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: H = None
        self.r: C = None
        self.y: D = None
        self.t: G = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: F = None
        self.x: E = None
        self.y: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: H = None
        self.r: C = None
        self.y: D = None
        self.t: G = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: F = None
        self.x: E = None
        self.y: C = None
        self.txt = txt

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

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