#!/bin/sh

if [ $# -lt 1 ]; then
    echo "usage: $0 ARG ..." > /dev/stderr
    exit 1
fi

FIRST=$1
shift
POSITION=1

while [ $# -gt 0 ]; do
    if [ "$FIRST" = "$1" ]; then
        echo $POSITION
    fi
    POSITION=$(expr $POSITION + 1)
    shift
done


