OnePlus is a Chinese smartphone manufacturer founded in December 2013. Their latest phone, OnePlus 5, was unveiled on June 20, 2017.
I am sure you have seen that the name of the phone can easily be translated to a sum.
OnePlus can be written like
OnePlus 2 = (1+ 2) = 3
The name of one OnePlus phone. The above list in the only possible input
OnePlus 1 OnePlus 2 OnePlus X OnePlus 3 OnePlus 3T OnePlus 5
The sum of the name (a number not a string)
OnePlus 1 => 2 OnePlus 2 => 3 OnePlus X => an integer OnePlus 3 => 4 OnePlus 3T => 27 (T = Today = 23 thus 1+3+23=27) OnePlus 5 => 6
The input can be written in different versions. This applies to every names. For example
OnePlus 1 OnePlus1 One+ 1 One+1 1+ 1 1+1
- The output for
OnePlus Xis an integer that should be different from the other phones names. Whatever you want except
OnePlus 3Twill always be
23which is the day I am posting this.
- This is code-golf, so the shortest solution (in bytes) wins.