class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: G = None
        self.q: D = None
        self.o: G = None
        self.v: I = None
        self.z: E = None
        self.t: I = None
        self.s: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: C = None
        self.r: H = None
        self.s: F = None
        self.v: F = None
        self.t: A = None
        self.q: I = None
        self.o: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: D = None
        self.x: I = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: A = None
        self.p: G = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: B = None
        self.r: C = None
        self.s: H = None
        self.u: D = None
        self.z: D = None
        self.v: E = None
        self.t: D = None
        self.o: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: G = None
        self.q: D = None
        self.o: G = None
        self.v: I = None
        self.z: E = None
        self.t: I = None
        self.s: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: C = None
        self.r: H = None
        self.s: F = None
        self.v: F = None
        self.t: A = None
        self.q: I = None
        self.o: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: D = None
        self.x: I = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: A = None
        self.p: G = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: B = None
        self.r: C = None
        self.s: H = None
        self.u: D = None
        self.z: D = None
        self.v: E = None
        self.t: D = None
        self.o: D = None
        self.txt = txt

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

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