Solution to the problem number 663 of AceptaelReto - 663.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;

int main(){
    int year,cases; scanf("%d",&cases);
    while(cases--){
        scanf("%d",&year);
        if(year>0) printf("%d\n",year-1);
        else printf("%d\n",year);
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!