Masala #0637
Arfmetik ifoda & 1
Sizga \(n\) natural soni beriladi, sizning vazifangiz \(n\) sonini faqatgina \(1\) lardan tashkil topgan arfmetik ifoda kurinishida ifodalash kerak. Arfmetik ifodada faqatgina \(2\) ta amal(qo'shish va ayirish)dan foydalanishingiz mumkun. Misol: \(121=111+11-1\).
Kirish faylining yagona satrida \(n(1\leq n< 10^{15})\) natural soni.
Chiqish faylida hosil qilinishi kerak bo'lgan arfmetik ifoda uchun kamida nechta \(1\) dan foydalanishingiz kerak ekanligini chop eting.
# | input.txt | output.txt |
---|---|---|
1 |
121 |
6 |