print$+[<>!~/^13+$/]-1