#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// string s; cin >> s; //////////////// 出力変数定義 //////////////// string result = ""; //////////////////// 処理 //////////////////// int h = stoi(s.substr(0,2)); int m = stoi(s.substr(3,2)); m += 5; if (m>=60) { m -= 60; h++; if (h>=24) { h -= 24; } } result = to_string(h) + ':' + to_string(m); if (result.at(1)==':') result.insert(result.begin(),'0'); if (result.size()==4) result.insert(result.begin()+3,'0'); //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }