use std::io::{self, Read, Write};
fn main() {
let mut input = String::new();
io::stdin().read_to_string(&mut input).unwrap();
let mut it = input.split_whitespace();
let mut out = io::BufWriter::new(io::stdout());
let t: usize = it.next().unwrap().parse().unwrap();
for _ in 0..t {
let a: u16 = it.next().unwrap().parse().unwrap();
let b: u16 = it.next().unwrap().parse().unwrap();
writeln!(out, "{}", a + b).unwrap();
}
}