Main logic

Now it's working.
Instead of

```javascript
var Input = Number(input);
if (isNaN(Input)) {
  // ...
}
```

you can directly do

```javascript
if (isNaN(input)) {
  // ...
}
```

`isNaN` accepts strings as argument ;-)