>>488
#include <windows.h>
#include <iostream>
#include <time.h>
using namespace std;
int main()
{
 int sec;
 cin >> sec;
 DWORD endtime = GetTickCount() + sec*1000;
 int tick;
 while((tick = endtime - GetTickCount()) > 0)
 {
  if(tick / 1000 < sec)
  {
   cout << sec << endl;
   sec--;
  }
  else
   Sleep(1);
 }
 Beep(4000, 1000);
 cout << "TimeOver" << endl;
 
}