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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: J = None
        self.x: D = None
        self.z: E = None
        self.u: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.u: D = None
        self.z: A = None
        self.q: D = None
        self.o: D = None
        self.v: A = None
        self.s: D = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.z: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: B = None
        self.t: G = None
        self.w: H = None
        self.txt = txt

l = A("l")
f = B("f")
i = C("i")
m = D("m")
e = E("e")
b = F("b")
d = G("d")
g = H("g")
n = I("n")
h = J("h")

l.s = g
l.v = g
l.r = n
l.q = n
l.p = n
l.t = m
l.u = m
l.z = m
l.x = i
l.w = e
f.v = b
f.p = h
f.u = h
f.x = m
f.z = e
i.q = d
i.x = d
i.o = d
i.w = n
i.t = n
i.u = n
i.r = l
i.z = e
m.p = f
m.x = l
e.o = d
e.q = d
e.z = d
e.x = n
e.u = l
e.p = l
e.t = l
e.s = b
b.s = e
b.q = l
d.t = f
d.w = f
d.x = m
d.u = m
d.q = m
d.o = m
d.s = m
d.z = l
d.v = l
g.q = h
g.z = i
n.x = l
n.v = l
n.r = l
n.s = i
n.w = i
n.z = f
n.q = f
n.u = m
n.y = d
h.p = f
h.q = f
h.t = d
h.w = g
assert e.x.r.v.q.w.q.t.z.r.txt == "
class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: I = None
        self.t: D = None
        self.u: D = None
        self.v: H = None
        self.q: I = None
        self.x: C = None
        self.w: E = None
        self.p: I = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: J = None
        self.x: D = None
        self.z: E = None
        self.u: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.u: D = None
        self.z: A = None
        self.q: D = None
        self.o: D = None
        self.v: A = None
        self.s: D = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.z: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: B = None
        self.t: G = None
        self.w: H = None
        self.txt = txt

l = A("l")
f = B("f")
i = C("i")
m = D("m")
e = E("e")
b = F("b")
d = G("d")
g = H("g")
n = I("n")
h = J("h")

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