first medium problem