#include <stdio.h>

int main() {
    float n, total;
    int months = 0;

    printf("Enter initial amount (USD): ");
    scanf("%f", &n);

    total = n;
    do {
        total = total + total * 0.007;
        months++;
    } while (total < 1000);

    printf("Months needed = %d\n", months);
    printf("Final amount = %.2f USD\n", total);
    return 0;
}