#include<bits/stdc++.h> using namespace std; bool judge_year(int year){ if((year%4==0&&year%100!=0)||(year%400==0)){ return true; } return false; } int main() { int y;cin>>y; int bir = 0; for(int i=2001;i<=y;i++){ if(judge_year(i)) bir++; } cout<<bir<<" "<<140*(y-2000)<<" "<<700*bir<<endl; }