#include <bits/stdc++.h>   using namespace std;   template <class T>   inline T BMOD(T p, T e, T m) {     T ret = 1;     while (e) {       if (e & 1) ret = (ret * p) % m;       p = (p * p) % m;       e >>= 1;     }     return (T)ret;   }   template <class T>   inline T MODINV(T a, T m) {     return BMOD(a, m - 2, m);   }   template <class T>   inline T isPrime(T a) {     for (T i = 2; i <= sqrt(double(a)); i++) {       if (a % i == 0) {         return 0;       }     }     return 1;   }   template <class T>   inline T lcm(T a, T b) {     return (a / __gcd(a, b)) * b;   }   template <class T>   inline T power(T a, T b) {     return (b == 0) ? 1 : a * power(a, b - 1);   }   template <class T>   inline string to_str(T t) {     stringstream ss;     ss << t;     return ss.str();   }   int main() {     int h, m;     scanf( %d:%d , &h, &m);     h %= 12;     double a = h * 30.0 + (m / 2.0);     double b = m * 6.0;     printf( %.10lf %.10lf n , a, b);     return 0;   }   