public static void main(String[] args) {
		// TODO Auto-generated method stub

		int [] three = new int[10000];
		int [] five = new int [10000];
		int [] ff = new int [10000];
		int sum3 = 0;
		int sum5 = 0;
		int sum15 = 0;
		
		for(int i = 0 ; i <= 333 ; i++){
			
			three[i] = 3*i;
		}
		for(int three1 : three){
			sum3 += three1;
//			System.out.println(sum3);
		}

		for(int n = 0 ; n < 200 ; n++){
			
			five[n] = 5*n;
		}
		for(int five1 : five){
			sum5 += five1;
//			System.out.println(sum5);
		}
		
		for(int m = 0 ; m <= 66 ; m++){
			
			ff[m] = 15*m;
		}
		for(int ff15 : ff){
			sum15 += ff15;
//			System.out.println(sum15);
		}
		
		System.out.println(sum3);
		System.out.println(sum5);
		System.out.println(sum15);
		System.out.println(sum3+sum5-sum15);
		}