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