package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func nextInt() int {
	sc.Scan()
	i, e := strconv.Atoi(sc.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func main() {
	sum := 0
	for i := 0; i < 3; i++ {
		sum += nextInt()
	}
	if sum%3 == 0 {
		fmt.Println("Yes")
	} else {
		fmt.Println("No")
	}
}
