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

class B:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: B = None
        self.s: F = None
        self.w: D = None
        self.y: G = None
        self.z: G = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.x: E = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: C = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: B = None
        self.s: F = None
        self.w: D = None
        self.y: G = None
        self.z: G = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.x: E = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: C = None
        self.q: C = None
        self.txt = txt

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

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