#include <stdio.h>
int main() {
    int sin_array[9] = {8, 1, 0, 6, 2, 0, 7, 1, 6}; 

    if (sin_array[0] == 0){
        return 1;
    }

    // make the result array
    int result[9];
    
    for (int i = 0; i < 9; i++){

        if (i % 2 == 0){
            result[i] = sin_array[i];
        } 

        else {
            
            int product = sin_array[i] * 2; 

            // sum the digits if it is a two-digit number
            if (product > 9){
                
                result[i] = 1 + (product % 10);
            } 

            else {
                
                result[i] = product;
            }
        }
    }
    
    printf("%d", result[0]);
    printf("%d", result[1]);
    printf("%d", result[2]);
    printf("%d", result[3]);
    printf("%d", result[4]);
    printf("%d", result[5]);
    printf("%d", result[6]);
    printf("%d", result[7]);
    printf("%d", result[8]);

    // sum the result
    int sum;

    for (int i = 0; i < 9; i++){
        sum += result[i];
    }

    if (sum % 10 != 0){
        return 1;
    }

    return 0;


}