while 1:s=sum((c>'H')+2*(c>'U')for c in input());print('I'*(s==4)+'V'*(s>3)+'I'*(s%5)*(s!=4))