class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.z: J = None
        self.t: I = None
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: I = None
        self.r: J = None
        self.t: H = None
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: I = None
        self.z: C = None
        self.r: D = None
        self.u: I = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: F = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: J = None
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: H = None
        self.s: J = None
        self.x: B = None
        self.w: D = None
        self.txt = txt

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

m = A("m")
f = B("f")
c = C("c")
j = D("j")
a = E("a")
d = F("d")
l = G("l")
g = H("g")
i = I("i")
n = J("n")

m.s = i
m.t = i
m.z = n
m.w = a
f.w = j
f.p = i
f.r = n
f.t = g
f.s = m
c.v = j
c.p = m
c.y = m
c.t = d
c.x = a
c.z = i
c.q = g
c.u = g
c.s = f
j.t = a
j.o = a
j.u = a
j.z = n
j.p = g
j.x = g
j.w = d
j.v = d
j.q = c
j.r = l
a.v = c
a.z = c
a.t = i
a.u = i
a.r = j
a.w = f
d.y = m
d.p = m
d.r = g
d.z = g
d.s = c
d.u = c
d.w = a
d.o = n
d.t = i
l.q = i
l.v = d
l.x = f
g.v = i
g.o = n
g.p = n
i.y = a
i.o = g
i.s = n
i.x = f
i.w = j
n.s = j
n.t = j
n.v = j
n.z = d
n.x = d
n.p = c
n.y = c
n.r = c
n.q = f
assert i.o.o.y.t.w.w.t.o.t.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.z: J = None
        self.t: I = None
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: I = None
        self.r: J = None
        self.t: H = None
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: I = None
        self.z: C = None
        self.r: D = None
        self.u: I = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: F = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: J = None
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: H = None
        self.s: J = None
        self.x: B = None
        self.w: D = None
        self.txt = txt

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

m = A("m")
f = B("f")
c = C("c")
j = D("j")
a = E("a")
d = F("d")
l = G("l")
g = H("g")
i = I("i")
n = J("n")

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