use std::fmt::Write;

fn main(){
    let mut sc = Scanner::new();

    while sc.read() {
        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>, i: usize, next: Option<String>,
}

#[allow(dead_code)]
impl Scanner {
    fn new() -> Scanner {
        Scanner { buf: vec![], i: 0, next: None, }
    }

    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> {
        self.read();
        self.next.take().and_then(|s| s.parse::<T>().ok())
    }

    fn read(&mut self) -> bool {
        if self.next.is_some() { return true }
        let mut s = String::with_capacity(16);
        while let Some(c) = self.get_char() {
            if !c.is_whitespace() { s.push(c); }
            else if !s.is_empty() { break; }
        }
        self.next = if !s.is_empty() { Some(s) } else { None };
        self.next.is_some()
    }

    fn get_char(&mut self) -> Option<char> {
        if self.i >= self.buf.len() {
            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); // AtCoderのRustには未実装
                    for i in 0..bytes.len() { self.buf[i] = bytes[i]; }
                    Some(bytes.len())
                },
                Err(_) => None,
            };
            self.i = 0;
            if len.is_some() { buffer.consume(len.unwrap()); }
            if len.is_none() || len.unwrap() == 0 { return None }
        }
        self.i += 1;
        Some(self.buf[self.i - 1] as char)
    }
}


Measured memory_bytes: 7668