class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: J = None
        self.o: H = None
        self.q: F = None
        self.t: C = None
        self.r: B = None
        self.w: I = None
        self.x: J = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: B = None
        self.u: G = None
        self.t: J = None
        self.w: D = None
        self.z: A = None
        self.r: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: A = None
        self.x: F = None
        self.v: G = None
        self.y: G = None
        self.w: F = None
        self.u: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: I = None
        self.p: D = None
        self.r: E = None
        self.x: A = None
        self.q: E = None
        self.t: A = None
        self.s: F = None
        self.u: A = None
        self.z: H = None
        self.txt = txt

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

g.p = n
g.y = j
g.x = j
g.o = b
g.q = i
g.t = d
g.r = l
g.w = c
l.y = h
l.r = h
l.o = b
l.w = b
l.z = n
l.x = i
l.t = i
l.p = j
d.v = n
d.r = n
d.y = a
d.w = b
d.z = h
d.o = h
d.u = i
d.x = i
n.s = g
n.t = a
n.w = a
n.p = b
h.o = l
h.q = l
h.p = a
h.u = d
h.z = b
h.y = b
h.r = g
h.w = g
h.v = j
h.s = i
i.o = g
i.z = g
i.x = l
i.r = l
i.u = a
i.t = j
i.w = n
a.q = g
a.s = b
a.r = b
a.y = i
a.x = h
a.z = h
a.t = n
a.w = n
a.o = l
a.p = l
b.u = h
b.s = h
b.r = g
b.w = g
b.p = j
b.z = l
c.p = n
c.z = g
c.x = i
c.w = i
c.v = a
c.y = a
c.u = a
j.v = a
j.w = c
j.p = n
j.r = h
j.q = h
j.x = g
j.t = g
j.u = g
j.s = i
j.z = b
assert i.u.y.t.p.p.w.r.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: J = None
        self.o: H = None
        self.q: F = None
        self.t: C = None
        self.r: B = None
        self.w: I = None
        self.x: J = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: B = None
        self.u: G = None
        self.t: J = None
        self.w: D = None
        self.z: A = None
        self.r: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: A = None
        self.x: F = None
        self.v: G = None
        self.y: G = None
        self.w: F = None
        self.u: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: I = None
        self.p: D = None
        self.r: E = None
        self.x: A = None
        self.q: E = None
        self.t: A = None
        self.s: F = None
        self.u: A = None
        self.z: H = None
        self.txt = txt

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

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