main = do n <- readLn if n `elem` [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61] then putStrLn "素数!" else if n `elem` [i ^ 2 | i <- [2 .. 7]] then putStrLn "平方数!" else if n `elem` [i ^ 3 | i <- [2 .. 3]] then putStrLn "立方数!" else if n `elem` [6, 28] then putStrLn "完全数!" else print n