public static void main(String[] args) {
		
		int count = 0;		
		for(int one = 0; one <= N; one++)
			for(int two = 0; one+two*2 <= N; two++)
				for(int five = 0; one+two*2+five*5 <= N; five++)
					for(int ten = 0; one+two*2+five*5+ten*10 <= N; ten++)
						for(int twenty = 0; one+two*2+five*5+ten*10+twenty*20 <= N; twenty++)
							for(int fifty = 0;  one+two*2+five*5+ten*10+twenty*20+fifty*50 <= N; fifty++)
								for(int hund = 0; one+two*2+five*5+ten*10+twenty*20+fifty*50+hund*100 <= N; hund++)
									for(int twoHund = 0; one+two*2+five*5+ten*10+twenty*20+fifty*50+hund*100+twoHund*200 <= N; twoHund++)
										if( one+two*2+five*5+ten*10+twenty*20+fifty*50+hund*100+twoHund*200 == N )
											count++;
		
		System.out.println(count);
	}