#include int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); if (d >= 10) return puts("Impossible"), 0; int res = 0; int combo = 0; int x = 0; for (int i = 0; i < b; ++i) { ++combo; if (combo % 100 == 1) ++x; res += 50*x; } for (int i = 0; i < a; ++i) { ++combo; if (combo % 100 == 1) ++x; res += 100*x; } printf("%d\n", res); }