class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: C = None
        self.q: D = None
        self.u: E = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: A = None
        self.x: I = None
        self.v: D = None
        self.r: C = None
        self.z: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: D = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: A = None
        self.x: I = None
        self.v: D = None
        self.r: C = None
        self.z: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: D = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

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