import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int a = scan.hasNextInt() ? scan.nextInt() : -1; int b = scan.hasNextInt() ? scan.nextInt() : -1; if (a > 456 || a < 0 || b > 123 || b < 1) { System.out.println("入力エラー"); return; } int step = 0; boolean flag = false; if(a >= b){ step = (a / b) + 1; }else{ flag = true; } step = !flag? step:1; // 結果出力 System.out.println(step); } }