Time Limit: 1500ms
Memory Limit: 256MB
J - Two Teams