import java.util.Scanner;

public class RingTossGame {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();  // Read attempt number

        if (n >= 1 && n <= 10) {
            int moneySaved = 1000 - (100 * n);
            System.out.println("You won the game on attempt " + n + ".");
            System.out.println("Money saved: ₹" + moneySaved);
            System.out.println("Gift received: Yes");
        } else if (n == -1) {
            System.out.println("You lost all 10 attempts.");
            System.out.println("Money saved: ₹0");
            System.out.println("Gift received: No");
        } else {
            System.out.println("Invalid input");
        }
    }
}
