int arr[3];
scanf("%1d%1d%1d", &arr[0], &arr[1], &arr[2]);