Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, if(A+B)%86=0,output yes in one line,else output no in one line.
#include<iostream>
#include<stdlib.h>
#include<stdio.h>
void main()
{
int A, B;
while(std::cin >> A >> B)
{
if ((A + B) % 86 == 0)
std::cout << "yes" << std::endl;
else
std::cout << "no" << std::endl;
}
system("pause");
}