#include #include #define REP(i,a,b) for(i=a;i> n; for(i=0;i> a; int tmp5=2,tmp2=2; while(a % 5 == 0) { tmp5--; a /= 5; } while(a % 2 == 0) { tmp2--; a /= 2; } if(cnt5 < tmp5) cnt5 = tmp5; if(cnt2 < tmp2) cnt2 = tmp2; } int rep = 1; for(i=0;i