Twitter compatible “Guess my number”

main() {puts("0 or 1?");while(1){puts((rand()%2==(getchar()-48))?"win":"lost");getchar();}}