Driver code
public static void Main ( String [ ] args ) { int res = count ( 1 , 2 ) ; if ( ( res == - 1 ) ) Console . WriteLine ( " INF " ) ; else Console . WriteLine ( res ) ; res = count ( 5 , 3 ) ; if ( ( res == - 1 ) ) Console . WriteLine ( " INF " ) ; else Console . WriteLine ( res ) ; res = count ( 3 , 5 ) ; if ( ( res == - 1 ) ) Console . WriteLine ( " INF " ) ; else Console . WriteLine ( res ) ; } }