class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: C = None
        self.u: B = None
        self.x: G = None
        self.o: H = None
        self.z: D = None
        self.v: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: H = None
        self.p: F = None
        self.x: G = None
        self.t: J = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: B = None
        self.r: I = None
        self.w: E = None
        self.y: D = None
        self.x: J = None
        self.t: C = None
        self.z: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: H = None
        self.p: F = None
        self.x: G = None
        self.t: J = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: B = None
        self.r: I = None
        self.w: E = None
        self.y: D = None
        self.x: J = None
        self.t: C = None
        self.z: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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