class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: B = None
        self.p: G = None
        self.t: J = None
        self.v: F = None
        self.u: H = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: E = None
        self.v: J = None
        self.s: F = None
        self.q: E = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: E = None
        self.x: F = None
        self.p: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: J = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: G = None
        self.q: H = None
        self.w: H = None
        self.u: D = None
        self.z: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: G = None
        self.p: G = None
        self.u: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: E = None
        self.v: J = None
        self.s: F = None
        self.q: E = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: E = None
        self.x: F = None
        self.p: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: J = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: G = None
        self.q: H = None
        self.w: H = None
        self.u: D = None
        self.z: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: G = None
        self.p: G = None
        self.u: J = None
        self.txt = txt

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

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

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