public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (true) {
			System.out.println("Please enter 3 numbers");
			int first = sc.nextInt();
			int second = sc.nextInt();
			int third = sc.nextInt();

			if (first == 0 && second == 0 && third == 0) {
				break;
			}

			if ((first + second + third) % 3 == 0) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	}