11 lines
166 B
Bash
Executable file
11 lines
166 B
Bash
Executable file
#!/usr/bin/env bash
|
|
cd "$(dirname "$0")";
|
|
|
|
output=0;
|
|
while read nr; do
|
|
a=$((nr / 3));
|
|
a=$((a - 2));
|
|
output=$((a + output));
|
|
done < ./input
|
|
|
|
echo $output;
|