class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: I = None
        self.z: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: B = None
        self.v: G = None
        self.u: A = None
        self.r: E = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: G = None
        self.p: C = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: E = None
        self.r: E = None
        self.z: F = None
        self.s: F = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: F = None
        self.s: C = None
        self.p: E = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: B = None
        self.v: G = None
        self.u: A = None
        self.r: E = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: G = None
        self.p: C = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: E = None
        self.r: E = None
        self.z: F = None
        self.s: F = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: F = None
        self.s: C = None
        self.p: E = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

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

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