use std::fmt::Write;

fn main(){
    let mut sc = Scanner::new();
    let n = sc.next();
    let mut x = vec![0i64; n];
    for i in 0..n {
        x[i] = sc.next();
    }
    let mut d = vec![0i64; n-1];
    for i in 0..n-1 {
        d[i] = x[i+1] - x[i];
    }
    let m = sc.next();
    let k = sc.next();
    let mut perm:Vec<_> = (0..n-1).collect();
    for _ in 0..m {
        let a = sc.next::<usize>() - 1;
        perm.swap(a-1, a);
    }
    let perm2 = pow(&perm, k);
    let mut res = vec![0i64; n-1];
    for i in 0..n-1 {
        res[i] = d[perm2[i]];
    }
    
    let mut ans = String::new();
    let mut cur = x[0];
    writeln!(&mut ans, "{}", cur).unwrap();
    for i in 0..n-1 {
        cur += res[i];
        writeln!(&mut ans, "{}", cur).unwrap();
    }
    
    print!("{}", ans);
}

fn pow(perm: &Vec<usize>, k: usize) -> Vec<usize> {
    if k == 0 {
        (0..perm.len()).collect()
    } else if k%2 == 1 {
        let x = pow(perm, k-1);
        prod(&x, &perm)
    } else {
        let x = pow(perm, k/2);
        prod(&x, &x)
    }
}

fn prod(a: &Vec<usize>, b: &Vec<usize>) -> Vec<usize> {
    let n = a.len();
    let mut res = vec![0; n];
    for i in 0..n {
        res[i] = a[b[i]];
    }
    res
}


#[allow(dead_code)]
struct Scanner {
    buf: Vec<u8>, idx: usize, next: String,
}
 
#[allow(dead_code)]
impl Scanner {
    fn new() -> Scanner {
        Scanner { buf: vec![], idx: 0, next: String::new() }
    }
 
    fn next<T: std::str::FromStr>(&mut self) -> T {
        self.wrapped::<T>().unwrap()
    }
 
    fn vec<T: std::str::FromStr>(&mut self, n: usize) -> Vec<T> {
        let mut res = Vec::<T>::with_capacity(n);
        for _ in 0..n { res.push(self.next()) }
        res
    }
 
    fn wrapped<T: std::str::FromStr>(&mut self) -> Option<T> {
        if !self.read() {
            None
        } else {
            let res = self.next.parse::<T>().ok();
            self.next.clear();
            res
        }
    }
 
    fn read(&mut self) -> bool {
        if !self.next.is_empty() {
            true
        } else {
            self.next.clear();
            loop {
                match self.get_char() {
                    Some(c) if !c.is_whitespace() => {
                        self.next.push(c);
                        break;
                    },
                    Some(_) => continue,
                    None => return false,
                }
            }
            loop {
                match self.get_char() {
                    Some(c) if !c.is_whitespace() => self.next.push(c),
                    _ => return true,
                }
            }
        }
    }
 
    fn get_char(&mut self) -> Option<char> {
        if self.idx >= self.buf.len() {
            self.fill_buf();
            if self.idx >= self.buf.len() { return None }
        }
        self.idx += 1;
        Some(self.buf[self.idx - 1] as char)
    }
 
    fn fill_buf(&mut self){
        use std::io::BufRead;
        let reader = std::io::stdin();
        let mut buffer = reader.lock();
        let len = match buffer.fill_buf() {
            Ok(bytes) => {
                self.buf.resize(bytes.len(), b'\0');
                // self.buf.copy_from_slice(bytes); // from Rust 1.9.0
                for i in 0..bytes.len() {
                    self.buf[i] = bytes[i];
                }
                // unsafe {
                //     std::ptr::copy_nonoverlapping(bytes.as_ptr(),
                //                                   self.buf.as_mut_ptr(),
                //                                   self.buf.len());
                // }
                bytes.len() as i32
            },
            Err(_) => -1,
        };
        self.idx = 0;
        if len >= 0 { buffer.consume(len as usize); }
    }
}


Measured memory_bytes: 7668