#include <bits/stdc++.h>
#include <iostream>
#include <iomanip>
#include <thread>
#include <chrono>
using namespace std;
vector<string> nguphap;
vector<string> transnp;
vector<string> tg;
string A;
vector<pair<string,string>> AB;
vector<string> luu;
// ĐỊNH DẠNG THỜI GIAN && VB THEO YÊU CẦU !!!
int main(){
int StepSizeX, StepSizeY, MaxJumpCount, CurrentJumpCount = 0;
string OutputStringSG;
stringstream StreamBuilderSG;
cin >> StepSizeX;
cin >> StepSizeY;
cin >> MaxJumpCount;
for (int CurrentMinutes = 0; CurrentMinutes < 60; ++CurrentMinutes) {
for (int CurrentSeconds = 0; CurrentSeconds < 60; CurrentSeconds += StepSizeX) {
if (CurrentJumpCount >= MaxJumpCount)
break;
int CurrentStepSize = (CurrentJumpCount % 2 == 0) ? StepSizeX : StepSizeY;
int NextSeconds = CurrentSeconds + CurrentStepSize;
int NextMinutes = CurrentMinutes;
if (NextSeconds >= 60) {
NextSeconds -= 60;
++NextMinutes;
}
StreamBuilderSG << "00:" << setw(2) << setfill('0') << CurrentMinutes << ":"
<< setw(2) << setfill('0') << CurrentSeconds << ",000 --> 00:"
<< setw(2) << setfill('0') << NextMinutes << ":"
<< setw(2) << setfill('0') << NextSeconds << ",000/";
for (volatile int DelayCounterSG = 0; DelayCounterSG < 1000000; ++DelayCounterSG);
++CurrentJumpCount;
}
if (CurrentJumpCount >= MaxJumpCount)
break;
}
OutputStringSG = StreamBuilderSG.str();
A = OutputStringSG;
stringstream AA(A);
string tgg;
while(getline(AA , tgg , '/')){
tg.push_back(tgg);
}
int x;
while(cin >> x){
string s;
getline(cin, s);
stringstream ss(s);
string word;
int i = 1;
while(getline (ss , word , '.')){
if(i==2){
nguphap.push_back(word);
}
else if(i==3){
transnp.push_back(word);
}
i++;
}
i=1;
}
int cnt = 0;
for(int l = 0;l<transnp.size();l++){
AB.push_back({nguphap[l],transnp[l]});
}
int K = 2;
for(auto k : AB){
for(int j = 1;j<=K;j++){
luu.push_back(k.first);
luu.push_back(k.second);
}
}
for(auto k : luu){
cout << cnt + 1 << endl << endl;
cout << tg[cnt] << endl;
cout << endl;
cout << k << endl;
cout << endl;
cnt++;
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGlvbWFuaXA+CiNpbmNsdWRlIDx0aHJlYWQ+CiNpbmNsdWRlIDxjaHJvbm8+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwp2ZWN0b3I8c3RyaW5nPiBuZ3VwaGFwOwp2ZWN0b3I8c3RyaW5nPiB0cmFuc25wOwp2ZWN0b3I8c3RyaW5nPiB0ZzsKc3RyaW5nIEE7CnZlY3RvcjxwYWlyPHN0cmluZyxzdHJpbmc+PiBBQjsgCnZlY3RvcjxzdHJpbmc+IGx1dTsKCi8vIMSQ4buKTkggROG6oE5HIFRI4bucSSBHSUFOICYmIFZCIFRIRU8gWcOKVSBD4bqmVSAhISEKaW50IG1haW4oKXsKCgogICAgaW50IFN0ZXBTaXplWCwgU3RlcFNpemVZLCBNYXhKdW1wQ291bnQsIEN1cnJlbnRKdW1wQ291bnQgPSAwOyAKICAgIHN0cmluZyBPdXRwdXRTdHJpbmdTRzsgCiAgICBzdHJpbmdzdHJlYW0gU3RyZWFtQnVpbGRlclNHOyAKCiAgICBjaW4gPj4gU3RlcFNpemVYOwogICAgY2luID4+IFN0ZXBTaXplWTsKICAgIGNpbiA+PiBNYXhKdW1wQ291bnQ7CiAgICBmb3IgKGludCBDdXJyZW50TWludXRlcyA9IDA7IEN1cnJlbnRNaW51dGVzIDwgNjA7ICsrQ3VycmVudE1pbnV0ZXMpIHsKICAgICAgICBmb3IgKGludCBDdXJyZW50U2Vjb25kcyA9IDA7IEN1cnJlbnRTZWNvbmRzIDwgNjA7IEN1cnJlbnRTZWNvbmRzICs9IFN0ZXBTaXplWCkgewogICAgICAgICAgICBpZiAoQ3VycmVudEp1bXBDb3VudCA+PSBNYXhKdW1wQ291bnQpCiAgICAgICAgICAgICAgICBicmVhazsKCiAgICAgICAgICAgIGludCBDdXJyZW50U3RlcFNpemUgPSAoQ3VycmVudEp1bXBDb3VudCAlIDIgPT0gMCkgPyBTdGVwU2l6ZVggOiBTdGVwU2l6ZVk7CiAgICAgICAgICAgIGludCBOZXh0U2Vjb25kcyA9IEN1cnJlbnRTZWNvbmRzICsgQ3VycmVudFN0ZXBTaXplOwogICAgICAgICAgICBpbnQgTmV4dE1pbnV0ZXMgPSBDdXJyZW50TWludXRlczsKCiAgICAgICAgICAgIGlmIChOZXh0U2Vjb25kcyA+PSA2MCkgewogICAgICAgICAgICAgICAgTmV4dFNlY29uZHMgLT0gNjA7CiAgICAgICAgICAgICAgICArK05leHRNaW51dGVzOwogICAgICAgICAgICB9CgogICAgICAgICAgICBTdHJlYW1CdWlsZGVyU0cgPDwgIjAwOiIgPDwgc2V0dygyKSA8PCBzZXRmaWxsKCcwJykgPDwgQ3VycmVudE1pbnV0ZXMgPDwgIjoiIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPDwgc2V0dygyKSA8PCBzZXRmaWxsKCcwJykgPDwgQ3VycmVudFNlY29uZHMgPDwgIiwwMDAgLS0+IDAwOiIgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8PCBzZXR3KDIpIDw8IHNldGZpbGwoJzAnKSA8PCBOZXh0TWludXRlcyA8PCAiOiIgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8PCBzZXR3KDIpIDw8IHNldGZpbGwoJzAnKSA8PCBOZXh0U2Vjb25kcyA8PCAiLDAwMC8iOwoKICAgICAgICAgICAgZm9yICh2b2xhdGlsZSBpbnQgRGVsYXlDb3VudGVyU0cgPSAwOyBEZWxheUNvdW50ZXJTRyA8IDEwMDAwMDA7ICsrRGVsYXlDb3VudGVyU0cpOwoKICAgICAgICAgICAgKytDdXJyZW50SnVtcENvdW50OwogICAgICAgIH0KICAgICAgICBpZiAoQ3VycmVudEp1bXBDb3VudCA+PSBNYXhKdW1wQ291bnQpCiAgICAgICAgICAgIGJyZWFrOwogICAgfQoKICAgIE91dHB1dFN0cmluZ1NHID0gU3RyZWFtQnVpbGRlclNHLnN0cigpOwoKICAgIEEgPSBPdXRwdXRTdHJpbmdTRzsKICAgIAogICAgc3RyaW5nc3RyZWFtIEFBKEEpOwogICAgc3RyaW5nIHRnZzsKICAgIHdoaWxlKGdldGxpbmUoQUEgLCB0Z2cgLCAnLycpKXsKICAgICAgICB0Zy5wdXNoX2JhY2sodGdnKTsKICAgIH0KCiAgICBpbnQgeDsKCiAgICB3aGlsZShjaW4gPj4geCl7CiAgICAgICAgc3RyaW5nIHM7IAogICAgICAgIGdldGxpbmUoY2luLCBzKTsKICAgICAgICBzdHJpbmdzdHJlYW0gc3Mocyk7CiAgICAgICAgc3RyaW5nIHdvcmQ7CiAgICAgICAgaW50IGkgPSAxOyAKICAgICAgICAKICAgICAgICB3aGlsZShnZXRsaW5lIChzcyAsIHdvcmQgLCAnLicpKXsKICAgICAgICAgICAgaWYoaT09Mil7CiAgICAgICAgICAgIG5ndXBoYXAucHVzaF9iYWNrKHdvcmQpOyAKICAgICAgICB9CiAgICAgICAgZWxzZSBpZihpPT0zKXsKICAgICAgICAgICAgdHJhbnNucC5wdXNoX2JhY2sod29yZCk7CiAgICAgICAgfQogICAgICAgIGkrKzsgCiAgICAgICAgfQogICAgICAgIGk9MTsgCiAgICB9CiAgICAKICAgIGludCBjbnQgPSAwOwoKICAgIGZvcihpbnQgbCA9IDA7bDx0cmFuc25wLnNpemUoKTtsKyspewogICAgICAgIEFCLnB1c2hfYmFjayh7bmd1cGhhcFtsXSx0cmFuc25wW2xdfSk7CiAgICB9CiAgICBpbnQgSyA9IDI7CiAgICBmb3IoYXV0byBrIDogQUIpewogICAgICAgIGZvcihpbnQgaiA9IDE7ajw9SztqKyspewogICAgICAgICAgICBsdXUucHVzaF9iYWNrKGsuZmlyc3QpOwogICAgICAgICAgICBsdXUucHVzaF9iYWNrKGsuc2Vjb25kKTsgCiAgICAgICAgfQogICAgfQoKICAgIGZvcihhdXRvIGsgOiBsdXUpewogICAgICAgIGNvdXQgPDwgY250ICsgMSA8PCBlbmRsIDw8IGVuZGw7IAogICAgICAgIGNvdXQgPDwgdGdbY250XSA8PCBlbmRsOwogICAgICAgIGNvdXQgPDwgZW5kbDsKICAgICAgICBjb3V0IDw8IGsgPDwgZW5kbDsKICAgICAgICBjb3V0IDw8IGVuZGw7IAogICAgICAgIGNudCsrOyAKICAgIH0KICAgIHJldHVybiAwOwp9IA==