#include<stdio.h>
int main()
{
    int n;
    scanf("%d",&n);
    if(n >= 1 && n <=3)
       printf("1 ambulance");
    else if (n >=4 && n <=6)
       printf("1 ambulance,1 fire unit");
    else if (s >=7 && n <=9)
       printf("2 ambulance,1 fire unit");
    else if (n >=9 && n <=10)
       printf("3 ambulance,2 fire unit ,1 support unit");
    else
       printf("Invalid Input");
       
    return 0;
}