#include using namespace std; int n; int main(){ cin>>n; int b=1,ans=0; while(b