Hide

Problem E
Ethanol

Languages da en is
/problems/ethanol/file/statement/en/img-0001.png
A straight-chain alkanol, such as ethanol, is an organic compound consisting of one or more carbon atoms joined by single covalent bonds, with an OH functional group (the ‘hydroxyl group’) attached to one of the carbon atoms in the chain.

Input

One line with an integer $c\in \{ 1,\ldots , 10\} $, the number of carbon atoms.

Output

A drawing of the chemical compound in the style of the samples. The hydroxyl group is at the rightmost carbon atom.

Sample Input 1 Sample Output 1
1
  H 
  | 
H-C-OH
  | 
  H 
Sample Input 2 Sample Output 2
2
  H H 
  | | 
H-C-C-OH
  | | 
  H H