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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: E = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: G = None
        self.t: F = None
        self.u: G = None
        self.x: B = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: B = None
        self.r: J = None
        self.w: G = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: E = None
        self.w: J = None
        self.y: F = None
        self.t: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: G = None
        self.r: G = None
        self.s: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: E = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: G = None
        self.t: F = None
        self.u: G = None
        self.x: B = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: B = None
        self.r: J = None
        self.w: G = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: E = None
        self.w: J = None
        self.y: F = None
        self.t: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: G = None
        self.r: G = None
        self.s: C = None
        self.txt = txt

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

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