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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: F = None
        self.s: F = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: E = None
        self.x: A = None
        self.v: G = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: I = None
        self.s: F = None
        self.r: B = None
        self.x: F = None
        self.v: I = None
        self.p: E = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: B = None
        self.v: G = None
        self.q: E = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: F = None
        self.s: F = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: E = None
        self.x: A = None
        self.v: G = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: I = None
        self.s: F = None
        self.r: B = None
        self.x: F = None
        self.v: I = None
        self.p: E = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: B = None
        self.v: G = None
        self.q: E = None
        self.r: G = None
        self.txt = txt

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

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