C 64 6363 56 or 61
If the input can be piped from file
main(a){while(scanf("%d",&a)>0)putchar(48+(a-a/10)%10);} If the input should be typed to stdin
i;main(a){for(;i++-4;printf4;putchar("%d",48+(a-a/10)%10))scanf("%d",&a);} Reads the four numbers in a loop and then processes each by subtracting the first digit from the value and printing the result modulo 10.
Savings thanks to various comments below and also using putchar instead of printf