#include <stdio.h>
#include <math.h>
int main(){
    double sd;
    if("%lf",&sd)!=1){
        printf("Invalid Input\n");
        return 1;
    }
    if(sd<0){
        printf("Invalid Input\n");
        return 1;
    }
    int s=(int)round(sd);
    if(s<0){
        s=0;
    }
    int t=0;
    t+=s/3;
    s%=3;
    
    t+=s/2;
    s%=2;
    t+=s;
    printf("%d\n",t);
    return 0;
}