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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: A = None
        self.w: C = None
        self.v: C = None
        self.s: D = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: H = None
        self.z: G = None
        self.v: B = None
        self.r: F = None
        self.t: F = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: A = None
        self.w: C = None
        self.v: C = None
        self.s: D = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: H = None
        self.z: G = None
        self.v: B = None
        self.r: F = None
        self.t: F = None
        self.p: H = None
        self.txt = txt

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

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

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