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

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: J = None
        self.u: A = None
        self.r: G = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: E = None
        self.w: G = None
        self.y: F = None
        self.z: B = None
        self.x: G = None
        self.r: B = None
        self.p: D = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: G = None
        self.t: D = None
        self.u: A = None
        self.q: H = None
        self.p: A = None
        self.w: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: J = None
        self.u: A = None
        self.r: G = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: E = None
        self.w: G = None
        self.y: F = None
        self.z: B = None
        self.x: G = None
        self.r: B = None
        self.p: D = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: G = None
        self.t: D = None
        self.u: A = None
        self.q: H = None
        self.p: A = None
        self.w: H = None
        self.txt = txt

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

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