There exist certain strings, known as $Unique$ $Strings$. They possess a unique property: 
- The character 'c' gets converted to "ff" and the character 'k' gets converted to "gg". Any letter besides 'c' and 'k' does not get converted to any other character.
Your job is to count the number of strings that could possibly be represented by a given unique string. Since the value could be very large, output the remainder when divided by $10^9+7$.
Note that if the given string is not a unique string, i.e. it contains either 'c' or 'k', output $0$.

-----Input:-----
- The first line of input contains a string, $s$.

-----Output:-----
- Output in a single line the possible number of strings modulo $10^9+7$.

-----Constraints-----
- $1 \leq |s| \leq 10^5$
where |s| denotes length of string.

-----Sample Input 1:-----
thing

-----Sample Input 2:-----
ggdffn

-----Sample Input 3:-----
fff

-----Sample Input 4:-----
cat

-----Sample Output 1:-----
1

-----Sample Output 2:-----
4

-----Sample Output 3:-----
3

-----Sample Output 4:-----
0

-----EXPLANATION:-----
The possible strings that can be represented by the given string in each of the examples are as follows:
$1)$ 'thing'
$2)$ 'ggdffn','kdffn','ggdcn','kdcn'
$3)$ 'fff','cf','fc'
$4)$ Since the string 'cat' contains 'c', it is certain that this string is not a unique string. Hence, the output is $0$.

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = "from itertools import combinations as cb\n\ns = input()\ns = list(s)\nif('c' in s or 'k' in s):\n print('0')\nelse:\n nf = []\n nk =[]\n i =0\n while i<len(s)-1:\n  if(s[i]=='f'):\n   j=i+1\n   p=1\n   k =1\n   while j<len(s) and p:\n    if(s[j]=='f'):\n     k+=1\n     j +=1\n    else:\n     p=0\n   nf.append(k) \n   i = j\n  elif(s[i]=='g'):\n   j = i+1\n   p=1\n   k=1\n   while j<len(s) and p:\n    if(s[j]=='g'):\n     k+=1\n     j+=1\n    else:\n     p=0\n     \n   nk.append(k)\n   i = j\n  else:\n   i+=1\n\n \n p=1\n for i in nf:\n  n = i\n  if(n>=2):\n   k=0\n   for j in range(1,n+1):\n    a = (n//j) -1\n    k +=a\n   k+=1\n   p *=k\n for i in nk:\n  n = i\n  if(n>=2):\n   k=0\n   for j in range(1,n+1):\n    a = (n//j) -1\n    k +=a\n   k+=1\n   p *=k\n if(nf!=[] and nk!=[]):\n  if(len(s)==nf[0] or len(s)==nk[0]):\n   count =p-1\n  else:\n   count =p\n elif(nf==[] and nk!=[]):\n  if( len(s)==nk[0]):\n   count =p-1\n  else:\n   count =p\n elif(nf!=[] and nk==[]):\n  if(len(s)==nf[0]):\n   count =p-1\n  else:\n   count =p\n else:\n  count =1\n print(count%1000000007)"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13883