class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: D = None
        self.o: F = None
        self.w: I = None
        self.p: E = None
        self.q: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: A = None
        self.t: H = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: G = None
        self.s: B = None
        self.u: B = None
        self.r: I = None
        self.z: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: A = None
        self.t: H = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: G = None
        self.s: B = None
        self.u: B = None
        self.r: I = None
        self.z: G = None
        self.txt = txt

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

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

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

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