public class Test11 {
	public static void main(String[] args) {
		int num;
		int totodd = 0, toteven = 0, tot10su = 0;
		num = 99;
		while (true) {
			num++;
			if (num > 500) {
				System.out.printf("%d %d %d", totodd, toteven, tot10su);
				break;
			}
			else
			{
				if (num % 2 == 0) {
					toteven += num;
					if (num % 10 == 0)
						tot10su += num;
				}
				else
					totodd += num;
			}
		}
	}
}
