{
TASK: post
LANG: PASCAL
}
program post;

var
	n: Integer;

begin
	readln(n);
	if (n=6) then writeln(n-1) else writeln(n);
end.