#include <stdio.h>
int main() {
int n,years;
if (scanf("%d",&n) !=1){
return 1;
}
yeras =n/365;
printf("%d\n",years);
return 0;
}