What's your ID?

Limits: 1s, 512 MB

You must have heard the name of Metropolitan University. As soon as a student get admitted there, the university provides him/her a nine digits ID (Ex: 131-115-100 ). If you notice carefully you will find that, this is not just a random number. The very first two digits define the year of admission, and the third digit indicates the term of admission. 1 for Spring, 2 for Summer and 3 for Autumn. Next three digits indicate the name of the department.


This is a companion discussion topic for the original entry at https://toph.co/p/what-s-your-id

@touhidur Can you add a test case for this problem in Udebug?

Done! Check uDebug now!