Time

13:10:17
23 May 2012
Version for print

Gnome’s toys

prb83

   Gnomes freely operate of counting systems with separate bases, but they have found it in   daily trainings. For this reason every morning at gnomes begin with transfering in other counting systems current calendar date. Your task precisely same: transfer the date D/M/Y in system of counting with a basis of D+1.

   For any number greater than 9 using large letters in alphabetical order.


Specifications

   Input

   One line. The date in format of D/M/Y is written down in decimal system of counting.

   Output

   One line. The date in format of D/M/Y is written down in system of counting with a basis of D+1.


Problem information

Time Limit: 1 seconds
Memory Limit: 64 MB
Balls for the passed test: 10
Complexity: 13% 155/179
Classes: Calculation system

Example

Example input

1/10/2000

Example output

1/1010/11111010000


← Catacombs Problems Transfer →