public class Main { public static void main(String args[]) { long l = 9999999990L; long MEGABYTE = 1024L * 1024L; long b = l / MEGABYTE; System.out.println(b + " Mb"); } } //