标题:Who Wins
只看楼主
莫北
Rank: 1
来 自:内蒙古师范大学
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-3-16
 问题点数:0 回复次数:0 
Who Wins
Description

Stan and Ollie play the game of multiplication by multiplying an integer p by one of the numbers 2 to 9. Stan always starts with p = 1, does his multiplication, then Ollie multiplies the number, then Stan and so on. Before a game starts, they draw an integer 1 < n < 4294967295 and the winner is who first reaches p >= n.



Input

Each line of input contains one integer number n.




Output

For each line of input output one line either

Stan wins.

or

Ollie wins.

assuming that both of them play perfectly.



Sample Input


162
17
34012226

Sample Output


Stan wins.
Ollie wins.
Stan wins.
搜索更多相关主题的帖子: Who Wins 
2008-03-16 15:59



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-203681-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.369342 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved