using System;
public class Program
{
public static void Main()
for (float i = 0; i < 1025; i+=0.25f)
if (IsPowerOfTwo(i))
Console.WriteLine(i);
}
public static bool IsPowerOfTwo(float val)
if (val == 1) return true;
if (val == 0 || val % 2 != 0) return false;
var currentValue = val;
while (currentValue % 2 == 0)
if (currentValue == 2) return true;
currentValue /= 2;
return false;