#include<stdio.h>
int main(){
    int days,years;
    scanf("%d",&days);
    years=%d/365 ;
    printf("%d",years);
    
}