#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>


int main(int argc, char**argv) {
        argc--; argv++;
	if (setuid(0))
		perror("setuid");
        if (argc == 1 && !strcmp(argv[0],"-S")) {
            system("apm -S");
        } else {
            system("apm -s");
        }
        return 0;
}
