import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scanner=new Scanner(System.in); while(scanner.hasNext()) { long n=scanner.nextLong(); System.out.println(((n - 1) * 3 * 5 * 7 + 23)); } } } |
Double click to view unformatted code.