using System;

public static class Util
{

	public const int BACKGROUND = 0;
	public const int FOREGROUND = 1;

	public static void WritePos(int x, int y, string _str) {
		Console.SetCursorPosition (x, y);
		Console.Write (_str);
	}

	public static void WritePos(int x, int y, string _str, ConsoleColor color, int flag) {
		switch(flag) {
			case BACKGROUND: Console.BackgroundColor = color; break;
			case FOREGROUND: Console.ForegroundColor = color; break;
		}
		WritePos (x, y, _str);
	}

	public static void WritePos(int x, int y, string _str, ConsoleColor _strForegroundColor, ConsoleColor _strBackgroundColor) {
		Console.ForegroundColor = _strForegroundColor;
		WritePos (x, y, _str, _strBackgroundColor, BACKGROUND);
	}

	public static void WriteCenter() {
	}

}

