Problem: Do you remember a kind cartoon "Beauty and the Beast"? No, no, there was no firing from machine guns or radiation mutants time-travels!

There was a beauty named Belle. Once she had violated the Beast's order and visited the West Wing. After that she was banished from the castle... 

Everybody was upset. The beautiful Belle was upset, so was the Beast, so was Lumiere the candlestick. But the worst thing was that Cogsworth was upset. Cogsworth is not a human, but is the mantel clock, which was often used as an alarm clock.

Due to Cogsworth's frustration all the inhabitants of the castle were in trouble: now they could not determine when it was time to drink morning tea, and when it was time for an evening stroll. 

Fortunately, deep in the basement are lying digital clock showing the time in the format HH:MM. Now the residents of the castle face a difficult task. They should turn Cogsworth's hour and minute mustache hands in such a way, that Cogsworth began to show the correct time. Moreover they need to find turn angles in degrees for each mustache hands. The initial time showed by Cogsworth is 12:00.

You can only rotate the hands forward, that is, as is shown in the picture: 

<image>

As since there are many ways too select such angles because of full rotations, choose the smallest angles in the right (non-negative) direction.

Note that Cogsworth's hour and minute mustache hands move evenly and continuously. Hands are moving independently, so when turning one hand the other hand remains standing still.

Input

The only line of input contains current time according to the digital clock, formatted as HH:MM (00 ≤ HH ≤ 23, 00 ≤ MM ≤ 59). The mantel clock initially shows 12:00.

Pretests contain times of the beginning of some morning TV programs of the Channel One Russia.

Output

Print two numbers x and y — the angles of turning the hour and minute hands, respectively (0 ≤ x, y < 360). The absolute or relative error in the answer should not exceed 10 - 9.

Examples

Input

12:00


Output

0 0

Input

04:30


Output

135 180

Input

08:17


Output

248.5 102

Note

A note to the second example: the hour hand will be positioned exactly in the middle, between 4 and 5.

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author evgeny11
 */
public class B {

    public static void main(String[] args){

        OutputB out=new OutputB();
        InputB in=new InputB();
        /**
        * Get parameters
        */
        String[] inp=in.getLine().split(":");
        int HH=Integer.parseInt(inp[0]);
        int MM=Integer.parseInt(inp[1]);
        /**
        * Close stream
        */
        in.close();
        /**
        * Main part
        */
        
        double m=MM/60d;
        double h=(HH%12)/12d+m/12d;
        String ans=Double.toString(h*360d)+" "+Double.toString(m*360d);
        out.println(ans);
        
        
    }
}   

class InputB{
    BufferedReader in;
    public InputB(){
        in = new BufferedReader(new InputStreamReader(System.in));
        if(in==null) exit("Cannot open stream");
    } 

    public void close(){
        if(in!=null){
            try {
                in.close();
            } catch (IOException ex) {
                exit("Cannot close the stream");
            }
        }
    }

    public String getLine(){
        try {
            return in.readLine();
        } catch (IOException ex) {
            exit("Cannot read line");
        }
        return null;
    }
    
    public int getCharCode(){
        int res=-1;
        try{
            return res=(in.read());
        } catch (IOException ex){
            exit("Cannot read character");
        }
        return -1;
    }

    public int getInt(){
        return Integer.parseInt(getLine());
    }

    public double getDouble(){
        return Double.parseDouble(getLine());
    }

    public long getLong(){
        return Long.parseLong(getLine());
    }

    public int[] getIntArr(){
        String[] inp=getLine().split("\\s");
        int[] res=new int[inp.length];
        for(int i=0;i<inp.length;i++){
            res[i]=Integer.parseInt(inp[i]);
        }
        return res;
    }

    public long[] getLongArr(){
        String[] inp=getLine().split("\\s");
        long[] res=new long[inp.length];
        for(int i=0;i<inp.length;i++){
            res[i]=Long.parseLong(inp[i]);
        }
        return res;
    }

    public double[] getDobleArr(){
        String[] inp=getLine().split("\\s");
        double[] res=new double[inp.length];
        for(int i=0;i<inp.length;i++){
            res[i]=Double.parseDouble(inp[i]);
        }
        return res;
    }

    private void exit(String message){
        System.out.println("Error "+message);
        System.exit(1);
    }
}

class OutputB{

    public void println(){
            System.out.println();
    }

    public void println(double x){
        System.out.println(Double.toString(x));
    }

    public void println(long x){
        System.out.println(Long.toString(x));
    }

    public void println(int x){
        System.out.println(Integer.toString(x));
    }

    public void println(String str){
        System.out.println(str);
    }
    
    public void print(double x){
        System.out.print(Double.toString(x));
    }

    public void print(long x){
        System.out.print(Long.toString(x));
    }

    public void print(int x){
        System.out.print(Integer.toString(x));
    }

    public void print(String str){
        System.out.print(str);
    }
}