#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%lld",&n); if(n<20190001) printf("%lld\n",n+2018); else printf("20192018\n"); } return 0; } |
Double click to view unformatted code.