#include using namespace std; int main() { int L, M, N,ans; cin >> L >> M >> N; M =M+ N / 25; N = N % 25; cout << L << M << N<<"\n"; L =L+ M / 4; M = M % 4; cout << L << M << N << "\n"; L = L % 10; ans = L + M + N; cout << L << M << N << "\n"; cout << ans << "\n"; return 0; }