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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: G = None
        self.t: E = None
        self.y: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: C = None
        self.p: G = None
        self.o: A = None
        self.u: J = None
        self.z: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: E = None
        self.p: D = None
        self.t: D = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: B = None
        self.y: A = None
        self.r: F = None
        self.w: B = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: D = None
        self.o: G = None
        self.u: H = None
        self.q: C = None
        self.r: A = None
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: G = None
        self.t: E = None
        self.y: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: C = None
        self.p: G = None
        self.o: A = None
        self.u: J = None
        self.z: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: E = None
        self.p: D = None
        self.t: D = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: B = None
        self.y: A = None
        self.r: F = None
        self.w: B = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: D = None
        self.o: G = None
        self.u: H = None
        self.q: C = None
        self.r: A = None
        self.w: E = None
        self.txt = txt

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

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