/** provides methods to read and do some arithmetic on a pair of ints
 */
import java.io.*;
public class PairOfInts {

  // read a pair of integers and return their sum
  public int add() throws IOException {
    return KeyboardReader.getInt() + KeyboardReader.getInt();
  }

  // read a pair of integers and return their difference
  public int subtract() throws IOException {
    return KeyboardReader.getInt() - KeyboardReader.getInt();
  }
}

