--- /dev/null
+File.prototype.readAll = function()
+{
+ var data = '';
+
+ for (;;) {
+ try {
+ data += this.read(1, 16384);
+ } catch (x if x.name == 'IOException') {
+ if (!this.eof())
+ throw x;
+ break;
+ }
+ }
+
+ return data;
+}
+
+var words = stdin.readAll().split(/\ |\n|\t/);
+var dict = [];
+
+for (let w in words) {
+ let word = words[w];
+ if (word.length < 1)
+ continue;
+ if (dict[word] == undefined)
+ dict[word] = 1;
+ else
+ dict[word]++;
+}
+
+stdout.write("=======\n");
+for (i in dict)
+ stdout.write(i + " = " + dict[i] + "\n");