#include using namespace std; typedef long long ll; int main() { string s; cin>>s; int n=s.size(); int left,right; left=right=0; for (int i=0;i=2) { left++; break; } } eye=0; for (int k=j-1;k>i;k--) { if (s[k]=='^') eye++; else if (s[k]=='*'&&eye>=2) { right++; break; } } } cout<