import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
long x = sc.nextLong();
long sum = 0;
sum+=2*(x/11);
x%=11;
sum+=2*(x/10);
x%=10;
sum+=2*(x/9);
x%=9;
sum+=2*(x/8);
x%=8;
sum+=2*(x/7);
x%=7;
if(x==0)
{
System.out.println(sum);
}
else
{
System.out.println(sum+1);
}
}
}
}
Snuke has decided to play with a six-sided die
最新推荐文章于 2022-10-10 20:48:08 发布