aboutsummaryrefslogtreecommitdiff
path: root/codeforces/Borze/main.cpp
blob: b35852f8477fd54986f6934f91278bf776aea362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<bits/stdc++.h>

using namespace std;

int main () {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
  string s;
  cin >> s;
  s = regex_replace(s, regex("--"), "2");
  s = regex_replace(s, regex("-\\."), "1");
  s = regex_replace(s, regex("\\."), "0");
  cout << s << endl;
}