1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh set -eu entries=$(cat) for i in $entries; do for j in $entries; do if [ $((i+j)) -eq 2020 ]; then echo $((i*j)) exit fi done done