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

HO1019 - Шугаман 10

Өгсөн 4 оронтой тооны хөрөвсөн(тонгорсон) тоог ол.

Input

4 оронтой нэг тоо өгөгдөнө.

Output

Хөрөвсөн тоог хэвлэ.

Example

Input:
4352

Output:
2534

Нэмсэн:munkhbat
Огноо:2013-01-12
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM64 NCSHARP JULIA PYPY3

hide comments
2022-10-20 07:47:53
arhichin
2022-10-20 07:42:00
#include <iostream>
using namespace std;

int main() {
int a,b;
cin>>a;
b=a/1000+a%1000/100*10+a%1000%100/10*100+a%1000%100%10*1000;
cout<<b<<endl;
}
2022-09-21 08:43:09


Last edit: 2022-09-21 08:43:43
2022-09-20 05:17:08


Last edit: 2022-09-21 05:05:45
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.