#include <bits/stdc++.h> using namespace std; int main () { int x; cin>>x; if(x<10) cout<<x; while(x>9) { cout<<(x/10)%10<<"-"<<x%10; x/=10; } }