package j_25; import java.util.Scanner; public class FizzBuzz { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("金額を入力-->"); long N = sc.nextLong(); System.out.println("人数を入力-->"); int M = sc.nextInt(); if(N>1 && N<(Math.pow(10, 16)) && M >1 && (Math.pow(10, 4)) > M){ long O = N / M; System.out.println("一人あたりのお年玉は" + O + "です"); } } }