import java.util.Scanner;

public class Division {
	
	public static String fractionAsDecimal(int numerator, int denominator) {
	
            ///////////////////////////////////////////
            // ADD YOUR CODE HERE (AND NOWHERE ELSE) //	
            ///////////////////////////////////////////

	}

	public static void main(String[] args) {
		System.out.println("Enter some number of fractions of positive integers (separated by spaces).");
		System.out.println("Long division will then be used to find their (exact) decimal forms.");
		// example input:
		// 8/2 3/2 1/8 1/7 101/3 1/6 1/12 970/23 1691/330 3179893/9906
		
		Scanner scanner = new Scanner(System.in);
		String line = scanner.nextLine();
		scanner.close();
		
		String[] quotients = line.split(" ");
		for (String quotient : quotients) {
			String[] parts = quotient.split("/");
			int num = Integer.parseInt(parts[0]);
			int denom = Integer.parseInt(parts[1]);
			System.out.println("" + num + "/" + denom + " = " + fractionAsDecimal(num,denom));
		}	
	}
}
