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

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: D = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: B = None
        self.u: D = None
        self.r: C = None
        self.x: D = None
        self.q: A = None
        self.txt = txt

e = A("e")
a = B("a")
j = C("j")
f = D("f")
g = E("g")
i = F("i")
k = G("k")
l = H("l")
m = D("m")
d = D("d")

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

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: D = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: B = None
        self.u: D = None
        self.r: C = None
        self.x: D = None
        self.q: A = None
        self.txt = txt

e = A("e")
a = B("a")
j = C("j")
f = D("f")
g = E("g")
i = F("i")
k = G("k")
l = H("l")
m = D("m")
d = D("d")

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