Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7304 - Сондгой цифрүүдийн тоо

Өгөгдсөн тоон дахь сондгой цифрүүдийн тоог ол.

Input

Бүхэл тоо өгөгдөнө.

Output

Сондгой цифрүүдийн тоо.

Example

Input:
23457

Output:
3

Нэмсэн:Bataa
Огноо:2013-01-09
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2024-04-29 03:56:11
You are my sunshine
My only sunshine
you make me happy
2024-04-29 03:56:11
You are my sunshine
My only sunshine
you make me happy
2024-04-29 03:56:11
You are my sunshine
My only sunshine
you make me happy
2024-04-29 03:56:10
You are my sunshine
My only sunshine
you make me happy
2024-04-29 03:56:10
You are my sunshine
My only sunshine
you make me happy
2024-04-29 03:56:10
You are my sunshine
My only sunshine
you make me happy
2024-04-29 03:56:10
You are my sunshine
My only sunshine
you make me happy
2024-04-29 03:56:09
You are my sunshine
My only sunshine
you make me happy
2024-04-29 03:56:09
You are my sunshine
My only sunshine
you make me happy
2024-03-13 03:16:19

using namespace std;
int h(int n,int m){
int ans,i,s;
for(i=1;i<=n;i++){
if(n%i==0){
if(m%i==0){
s=i;
}
}
}
ans=s;

}

int main() {
int n,m,s,i;
cin>>n>>m;
s=h(n,m);
cout<<s;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.