#include <stdio.h> int main( void ) { unsigned n; scanf( "%u", &n ); unsigned s = 1; for( ; n; n/=10 ) s *= n%10; printf( "%u\n", s ); }