class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: F = None
        self.x: F = None
        self.v: D = None
        self.q: D = None
        self.y: I = None
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: B = None
        self.q: I = None
        self.txt = txt

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

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

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

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

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

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

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

h.r = g
h.u = c
h.x = c
h.t = c
h.v = f
h.q = f
h.y = m
g.p = l
g.x = l
g.z = l
g.u = n
g.y = n
g.q = b
g.s = b
g.w = m
g.o = f
g.v = c
l.u = m
l.s = m
l.w = b
l.o = c
l.p = c
l.y = h
l.r = h
l.x = h
l.q = f
f.s = a
f.z = g
f.q = m
a.t = g
a.u = g
a.y = l
a.v = m
a.w = h
a.r = h
a.o = h
a.p = f
a.z = n
c.s = b
c.y = b
c.w = l
c.x = l
c.r = a
c.p = i
c.v = i
b.p = f
b.v = f
b.u = a
b.w = a
b.y = g
b.x = g
b.z = n
b.q = i
b.t = h
b.o = h
i.w = n
i.r = g
i.v = g
i.o = a
i.x = h
m.x = c
m.s = a
m.q = a
m.y = a
m.p = b
m.o = n
m.w = l
m.z = l
m.u = f
m.r = f
n.p = a
n.w = a
n.x = m
n.u = b
n.z = b
n.y = f
n.s = l
assert h.v.q.p.w.y.u.y.z.s.txt == "
class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: F = None
        self.x: F = None
        self.v: D = None
        self.q: D = None
        self.y: I = None
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: B = None
        self.q: I = None
        self.txt = txt

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

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

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

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

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

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

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

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