#include <stdio.h>

int main() {
    int number;
    float price, discount, total;

    printf("Are you number <1. Yes 2. No>:");
    scanf("%d", &number);

    printf("Enter the purchase price :");
    scanf("%f", &price);

    if ((number == 1) && (price >= 2000)) {
        discount = price * 0.1;
        total = price - discount;
    } else if ((number == 1) && (price < 2000)) {
        discount = price * 0.07;
        total = price - discount;
    } else if ((number == 2) && (price >= 1000)) {
        discount = price * 0.05;
        total = price - discount;
    } else {
        discount = 0; 
        total = price - discount;
    }

    printf("**\n");
    printf("The purchase price = %.2f\n", price);
    printf("Discount = %.2f\n", discount);
    printf("Price after discount = %.2f\n", total);

}