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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: A = None
        self.u: F = None
        self.s: H = None
        self.o: C = None
        self.z: D = None
        self.t: A = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: B = None
        self.s: I = None
        self.v: G = None
        self.q: D = None
        self.z: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: C = None
        self.v: G = None
        self.u: D = None
        self.x: E = None
        self.s: H = None
        self.txt = txt

j = A("j")
f = B("f")
n = C("n")
e = D("e")
a = E("a")
d = F("d")
b = G("b")
i = H("i")
c = I("c")
k = J("k")

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: A = None
        self.u: F = None
        self.s: H = None
        self.o: C = None
        self.z: D = None
        self.t: A = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: B = None
        self.s: I = None
        self.v: G = None
        self.q: D = None
        self.z: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: C = None
        self.v: G = None
        self.u: D = None
        self.x: E = None
        self.s: H = None
        self.txt = txt

j = A("j")
f = B("f")
n = C("n")
e = D("e")
a = E("a")
d = F("d")
b = G("b")
i = H("i")
c = I("c")
k = J("k")

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