class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: F = None
        self.s: E = None
        self.u: H = None
        self.v: D = None
        self.x: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: D = None
        self.s: G = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: G = None
        self.q: B = None
        self.z: A = None
        self.p: A = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: E = None
        self.w: G = None
        self.r: A = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: A = None
        self.u: A = None
        self.s: H = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: B = None
        self.z: A = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: A = None
        self.w: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: D = None
        self.s: G = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: G = None
        self.q: B = None
        self.z: A = None
        self.p: A = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: E = None
        self.w: G = None
        self.r: A = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: A = None
        self.u: A = None
        self.s: H = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: B = None
        self.z: A = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: A = None
        self.w: B = None
        self.txt = txt

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

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

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