#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
	char* lotid = "XL012770XA";
	char* operid = "PPHHXGNA";
	char* toolid = "DD99";
	switch(lotid[5]){
		case '4':
			if(operid[1] == 'P' && operid[2] == 'H') printf("Start Lithography process for monitor lot\n");
			else printf("Not a right operation ...\n");
			break;
		case '7':
			if(toolid[0] != 'W'){
				if(operid[1] == 'C'){
					if(lotid[0] == 'X' && lotid[1] =='A') printf("Start Polishing process for priority lot\n");
					else switch(lotid[9])
						{
							case 'A':
								printf("Wrong lot, must not use Copper layers\n");
								break;
							case 'B':
								printf("Warning, will not start Aluminum lot on Polishing process\n");
								break;
							default:
								printf("Unknown lot !\n");
						}
				}
				else printf("Wrong operation type !\n");
			}
			else{
				if(lotid[9] == 'A') printf("Start Etch process ofor priority lot\n");
				else printf("Can't start process, must be a Copper lot\n");
			}
			break;
		default:
			printf("Unknown lot type !\n");
			break;
	}
	return 0;
}
