import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); while(in.hasNextDouble()){
a.add(in.nextDouble());
}
int n=a.size()/2;
int b=0;
for(int i=0;i<n;i++){
a.add(2*i+1,a.get(n+b+i));
b++;
}
a.setSize(2*n);
a.toArray(s);
for(int i=0;i<s.length;i++){
if(s[i]==s[i].intValue()){
System.
out.
print(s
[i
].
intValue()+" "); }
else{
}
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJVmVjdG9yIGEgPSBuZXcgVmVjdG9yKCk7CgkJd2hpbGUoaW4uaGFzTmV4dERvdWJsZSgpKXsgCgkJCWEuYWRkKGluLm5leHREb3VibGUoKSk7IAoJCX0KCQlpbnQgbj1hLnNpemUoKS8yOwoJCWludCBiPTA7CgkJZm9yKGludCBpPTA7aTxuO2krKyl7CgkJCWEuYWRkKDIqaSsxLGEuZ2V0KG4rYitpKSk7CgkJICAgICAgICAgICAgYisrOwoJCX0KCQlhLnNldFNpemUoMipuKTsKCQlEb3VibGVbXSBzID0gbmV3IERvdWJsZVthLnNpemUoKV07CgkJYS50b0FycmF5KHMpOwoJCWZvcihpbnQgaT0wO2k8cy5sZW5ndGg7aSsrKXsKCQkJaWYoc1tpXT09c1tpXS5pbnRWYWx1ZSgpKXsKCQkJCVN5c3RlbS5vdXQucHJpbnQoc1tpXS5pbnRWYWx1ZSgpKyIgIik7CQoJCQl9CgkJCWVsc2V7CgkJCQlTeXN0ZW0ub3V0LnByaW50KHNbaV0rIiAiKTsJCgkJCX0KCQl9Cgl9Cn0=