import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone {
public static void main
( String[] arg s
) { Scanner in
= new Scanner
( System.
in ); int n = in.nextInt();
int[] array = new int[n];
if(n >= 3) {
for( int i = 0; i < n; i++ ) array[i] = in.nextInt();
for( int i=2; i<n; i=i+3 ) {
int elem = array[i-1];
array[i-1] = ( array[i-2] + array[i] ) / 2;
array[i] = ( array[i-2] + elem ) / 2;
}
System.
out.
print( ArrayString
); } else System.
out.
print( "Try again" ); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CiAKY2xhc3MgSWRlb25lIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluICggU3RyaW5nW10gYXJnIHMgKSB7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKCBTeXN0ZW0uaW4gKTsKCQlpbnQgbiA9IGluLm5leHRJbnQoKTsKCQlpbnRbXSBhcnJheSA9IG5ldyBpbnRbbl07CgkJaWYobiA+PSAzKSB7CgkJCWZvciggaW50IGkgPSAwOyBpIDwgbjsgaSsrICkgYXJyYXlbaV0gPSBpbi5uZXh0SW50KCk7CgkJCWZvciggaW50IGk9MjsgaTxuOyBpPWkrMyApIHsKCQkJCWludCBlbGVtID0gYXJyYXlbaS0xXTsKCQkJCWFycmF5W2ktMV0gPSAoIGFycmF5W2ktMl0gKyBhcnJheVtpXSApIC8gMjsKCQkJCWFycmF5W2ldID0gKCBhcnJheVtpLTJdICsgZWxlbSApIC8gMjsKCQkJfQoJCQlTdHJpbmcgQXJyYXlTdHJpbmcgPSBBcnJheXMudG9TdHJpbmcoYXJyYXkpOwoJCQlTeXN0ZW0ub3V0LnByaW50KCBBcnJheVN0cmluZyApOwoJCX0gZWxzZSBTeXN0ZW0ub3V0LnByaW50KCAiVHJ5IGFnYWluIiApOwoJfQp9