#!/usr/bin/python code = input() if code.isdigit() and len(code) == 5: print("true") else: print("false")