using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int tcnt = 0; int rcnt = 0; int ecnt = 0; int tree = 0; for(int i=0;i=1&&rcnt>=1&&ecnt>=2) { tcnt--; rcnt--; ecnt -= 2; tree++; } Console.WriteLine(tree); } } }