#include "libmin.h"

// Developer- Seonghoon Kang
// Intro- Reads a spelt number and writes a corresponding decimal number.
// Details- http://www.ioccc.org/2012/kang/hint.html

char *p = "fifty-two trillion six-hundred and seventy five million and sixty-one thousand and five-hundred sixty-two\n";

long long n,u,m,b;int main(){char **r;int e=0;for(;n++||(e=*p++)>0;b="ynwtsflrabg"[n%=11]-e?b:b*8+n)for(r=(char **)(b%64-25);e<47&&b;b/=8)for(n=19;n;(void)(((n["1+DIY/.K430x9G(kC["]-42)&255)^b||(m+=n>15?n:n>9?m%u*~-u:~(long)r?n+!(long)r*16:n*16,b=0)))u=1ll<<6177%n--*4;libmin_printf("%llx\n",m);libmin_success();}

