import java.io.*;
import java.util.*;

public class Rounder {
	public static void main(String [] args) throws Exception {
		Scanner scanner = new Scanner(new File("data.text"));

		int howMany = scanner.nextInt();

		for (int i = 1; i <= howMany; i = i + 1) {
			double d = scanner.nextDouble();
			System.out.println(d + " rounds to " + Math.round(d));
		}
	}
}
