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.|

RGB7301 - Ахмад орны цифр

Өгөгдсөн натурал тооны ахмад орны цифрийг ол. 

Input

n натурал тоо өгөгдөнө. (n<=10^6).

Output

Ахмад орны цифр болох нэг цифр байна.

Example

Input:
1234
Output:
1

Нэмсэн:Bataa
Огноо:2013-01-08
Хугацааны хязгаарлалт: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-12-11 07:02:10
anandiig alnaa
2024-12-03 07:45:12


Last edit: 2024-12-03 07:49:56
2024-12-03 07:45:12


Last edit: 2024-12-03 07:50:02
2024-12-03 07:43:40


Last edit: 2024-12-03 07:44:19
2024-11-28 05:26:31
zzza
2024-11-28 05:25:41
#include<stdio.h>
int main(){
int a,s;
scanf("%d",&a);
while(a>0){
s=a%10;
a=a/10;
}
printf("%d",s);
return 0;
}
bilegt 8_1 tsonjin
2024-11-26 22:51:24
#include <iostream>
using namespace std;

int main() {

long long n;
cin >> n;

while (n >= 10) {
n /= 10;
}

cout << n << endl;

return 0;
//ryuu bol gci
}
2024-11-21 06:42:59
hihihihihihihiihi


2024-11-19 02:06:34
https://kekma.ga/
2024-11-19 01:59:52
gomo sergelen sanar soymbo g bulaaltsddg 3 ner ni S ihlsn 3 lalar amaandaa boojgoogo
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.