Arduino Uno Input Capture!!!

i have confuse during rising edge and falling edges on input capture nethod,
please any one expalin during rising edge what values are stored in ICR1.
it can store upto 0 to 65535 for rising edge only if its than what values are stored during falling edges. how timer values are detecting the edges