Chessboard
Time limit1sMemory limit1024 MB
Given a number n from 1 to 64, print the chessboard square that Sasha numbered n, with rows numbered top to bottom.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Sasha numbered the squares of a chessboard, starting from the bottom-left square a1. She numbered the rows from top to bottom, and within each row from left to right. Her numbering is shown below.

Given the number of a square, print which square received that number.
Input
A single integer from 1 to 64 is given.
Output
Print the square that received the number .