n = int(input()) if n % 5 == 0: if n % 3 == 0: print('can') else: print('cannot') else: print('cannot')