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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: B = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: G = None
        self.v: J = None
        self.t: J = None
        self.p: B = None
        self.r: H = None
        self.q: A = None
        self.o: H = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: B = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: G = None
        self.v: J = None
        self.t: J = None
        self.p: B = None
        self.r: H = None
        self.q: A = None
        self.o: H = None
        self.s: A = None
        self.txt = txt

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

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

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