class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: B = None
        self.z: F = None
        self.v: H = None
        self.o: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: B = None
        self.z: F = None
        self.v: H = None
        self.o: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: E = None
        self.txt = txt

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

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

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

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