#!ruby -rmathn r=[] $_[1]?(~/(\d+)\D*(\d+)/;r<<[$1.to_i,$2.to_i]):puts((_=r.inject([0,1]){|(a,b),(c,d)|c