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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: I = None
        self.x: F = None
        self.w: F = None
        self.q: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: A = None
        self.s: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: E = None
        self.s: B = None
        self.y: C = None
        self.v: C = None
        self.w: E = None
        self.q: A = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: I = None
        self.x: F = None
        self.w: F = None
        self.q: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: A = None
        self.s: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: E = None
        self.s: B = None
        self.y: C = None
        self.v: C = None
        self.w: E = None
        self.q: A = None
        self.o: A = None
        self.txt = txt

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

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