#include #include #include #include #include #include #include #define pb push_back #define all(x) begin(x),end(x) #define ll long long #define P pair #define lP pait using namespace std; int main() { int a,b; char e; cin>>a>>e>>b; if(a<9){ if(b>54){ cout<<'0'<54){ cout<<'0'<<(a+1)%24<54){ cout<<(a+1)%24<