#include <iostream>
using namespace std;
int main()
{
int n,p=1;
cin>>n;
for(int i=1; i<=4; i++){
if(n%10%2==0){
p=p*n%10;
n=n/10;
}
else n=n/10;
cout<<p;
return 0;
Rezolvarea in c++