String str = br.readLine();
int a = Integer.parseInt(str);

intだと扱える数が少なく、やりたいことができなかったので、これを
long
に変えたいんですけど右はどうすればいいんですか。