#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

int BackdoorPassword(long);

int main(int argc, char *argv[])
{
	int i_bdKey;
	if(argc == 1)
	{
		printf("Enter backdoor key: ");
		scanf("%d",&i_bdKey);
	}
	else
	{
		i_bdKey = atoi(argv[1]);
	}
	printf("Backdoor Password: %d",BackdoorPassword(i_bdKey));
	return EXIT_SUCCESS;
}

int BackdoorPassword(long l_Key)
{
	short x;
	x = ((l_Key * -1.2456) + 1) * 65533;
	x = (x / 2 +7) * 3;
	x /= 2;
	return x*x;
}
