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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: H = None
        self.t: B = None
        self.q: I = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: B = None
        self.o: B = None
        self.r: J = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: G = None
        self.s: E = None
        self.z: A = None
        self.q: E = None
        self.u: F = None
        self.t: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: H = None
        self.t: B = None
        self.q: I = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: B = None
        self.o: B = None
        self.r: J = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: G = None
        self.s: E = None
        self.z: A = None
        self.q: E = None
        self.u: F = None
        self.t: G = None
        self.txt = txt

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

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

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

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