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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: H = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: C = None
        self.u: J = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.q: I = None
        self.p: E = None
        self.v: C = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: D = None
        self.q: C = None
        self.t: D = None
        self.s: C = None
        self.w: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: H = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: C = None
        self.u: J = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.q: I = None
        self.p: E = None
        self.v: C = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: D = None
        self.q: C = None
        self.t: D = None
        self.s: C = None
        self.w: F = None
        self.txt = txt

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

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