#include<iostream> int main() { int a,b,c,d,e,f; scanf("%d %d %d %d %d",&a,&b,&c,&d,&e,&f); (a+b+c+d+e+f)/6=9.6; (b+c+d+e+f)/5=9.4; (a+b+c+d+e)/5=9.8; 9.6*6-9.4*5=a; 9.6*6-9.8*5=f; printf("%d %d",a,f); return 0; }