cppOlimp/sbor_zemlyaniki.cpp
2022-02-07 21:33:05 +02:00

17 lines
273 B
C++

//acmp.ru 0755 sbor_zemlyaniki.cpp 6%
#include <stdio.h>
int main(){
freopen("INPUT.TXT", "r", stdin);
freopen("OUTPUT.TXT", "w", stdout);
short x, y, z;
scanf("%hi%hi%hi", &x, &y, &z);
if(z > x + y){
printf("Impossible");
}else {
printf("%hi", (x+y)-z);
}
}