d049

輸入說明 :

輸入僅有一行,其中包含一個西元年份 y (1912 ≤ y ≤ 2147483647)。

輸出說明 :

輸出所算出的民國年份。

N-1991

#include<stdio.h>
int main(){
    int N;
    while(scanf("%d",&N)!=EOF)
    {
        printf("%d\n",N-1911);
    }
     return 0;
}