Algorithm Analysis
Petrusha will be able to buy pies.
Read the input data. Calculate and output the answer.
scanf("%d %d", &m, &n);
res = m / n;
printf("%d\n", res);import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner con = new Scanner(System.in);
int m = con.nextInt();
int n = con.nextInt();
System.out.println(m / n);
con.close();
}
}m, n = map(int, input().split())
print(m // n)