| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 871 人关注过本帖
标题: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
快速回复:Who Wins
数据加载中...
 
   



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

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