Driver code
public static void Main ( ) { if ( isPowerful ( 20 ) ) Console . WriteLine ( " YES " ) ; else Console . WriteLine ( " NO " ) ; if ( isPowerful ( 27 ) ) Console . WriteLine ( " YES " ) ; else Console . WriteLine ( " NO " ) ; } }