Woburn Challenge 2016-17 Round 1 - Junior Division

Problem 1: A Spooky Season

Late October can be a rather frightening time of year. Night begins to fall ever earlier, ancient Pagan rituals make demons stir, and at the end of the month, hordes of small creatures can even be seen roaming the streets! It's a spooky sight if there ever was one.

But just how spooky is this demonic festival? Its spookiness level can, in fact, be measured and represented as a single integer S (2 ≤ S ≤ 20). However, a simple number doesn't truly do the spooky sensation justice. As such, it can also be described with the word "spoo...oooky", with exactly S o's.

Given the integer S, can you cast a spooky incantation on your computer to have it produce the corresponding spooky word?

Input Format

The first and only line of input consists of a single integer S.

Output Format

Output a single line consisting of a single string – the spooky word corresponding to the given value of S.

Sample Input

5

Sample Output

spoooooky

All Submissions
Best Solutions


Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 16, 2016
Author: SourSpinach

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

Comments (Search)

Can the input be negative?

This information exists in the problem statement.