#include <stdio.h>

int Domino(int N){
    return (( N+1 )*( N+2 )) /2;
}

int main() {
    int N;
    scanf("%d", &N);
    printf("%d", Domino(N));
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: